Fluid icon indicating copy to clipboard operation
Fluid copied to clipboard

Named Slots

Open s2b opened this issue 7 months ago • 0 comments

As an extension to components, it should be possible to provide multiple slots to one component: Named Slots.

<my:component>
  <f:fragment name="slot1">some <b>content</b></f:fragment>
  <f:fragment name="slot2">some <b>other</b> content</f:fragment>
</my:component>

And within the component:

<f:slot name="slot1" />
<f:slot name="slot2" />

We might also consider some other additions:

  • write available slot names to the cache so that they can be fetched easily
  • allow default values for slots
  • provide arguments to slots to separate integration and component

s2b avatar Jun 16 '25 16:06 s2b