WithoutChildren
A type helper to exclude the children snippet prop from a component.
The WithoutChildren
type helper is used to exclude the children
snippet prop from a component. This is useful when you're building custom component wrappers that populate the children
prop of a component.
In the example above, we're using the WithoutChildren
type helper to exclude the children
snippet prop from the Accordion.Root
component. This ensures our exposed props are consistent with what is being used internally.