Components
SlotRenderer
v1.0.0Renders 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: stringName of the slot to read from window.MeteorackSlots.
maxItems?: numberLimits how many registered renderers are executed.
className?: stringOptional 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>
);
}