Skip to content

ContentSlot

Call signature(props: { children: Children; }) => Children
hasContentbooleanWhether the slot has any content.
isEmptybooleanWhether the slot is currently empty.
refRef<boolean>A ref indicating whether the slot is currently empty.
WhenEmptyComponent<{}>A component that will render its contents when the content slot is empty.
WhenHasContentComponent<{}>A component that will render its contents when the content slot has content.