Visually edit a Tailwind CSS component with a Slot control

preview_player
Показать описание

For many components, one of the most important props is `children`, which usually expects a `ReactNode`. The `Slot` control allows your components to receive `ReactNode` as props, unlocking visual composition for your custom components. `Slot` is powered by the same layout technology that powers our Box component.

Рекомендации по теме