Components

SlotRenderer

v1.0.0

Renders content contributed by modules implementing SlotProviderInterface.

Import

import { SlotRenderer } from '@meteorack/sdk-react';

How To Use It

  • Use it at stable extension points where third-party modules are allowed to contribute UI into a named slot.
  • Keep slot names stable across releases so providers do not break when the host page evolves.

Works Well With

Props

slotId: string

Name of the slot to read from window.MeteorackSlots.

maxItems?: number

Limits how many registered renderers are executed.

className?: string

Optional class name for the host slot wrapper.

Example

SlotRenderer.tsx
import { Card, SlotRenderer } from '@meteorack/sdk-react';

export function DashboardSlotHost() {
  return (
    <Card>
      <SlotRenderer slotId="your-slot-id" maxItems={2} />
    </Card>
  );
}