ContentSlot
Members
Section titled “Members”| Call signature | (props: { children: Children; }) => Children | |
| hasContent | boolean | Whether the slot has any content. |
| isEmpty | boolean | Whether the slot is currently empty. |
| ref | Ref<boolean> | A ref indicating whether the slot is currently empty. |
| WhenEmpty | Component<{}> | A component that will render its contents when the content slot is empty. |
| WhenHasContent | Component<{}> | A component that will render its contents when the content slot has content. |