Disclosure

A disclosure component that shows and hides content when triggered.

This is the content inside the disclosure panel.

Props

id
Key
isDisabled
boolean
onExpandedChange
((isExpanded: boolean) => void)
isExpanded
boolean
defaultExpanded
boolean
children
ReactNode | ((values: DisclosureRenderProps & { defaultChildren: ReactNode; }) => ReactNode)
className
string | ((values: DisclosureRenderProps & { defaultClassName: string; }) => string)
style
CSSProperties | ((values: DisclosureRenderProps & { defaultStyle: CSSProperties; }) => CSSProperties)
slot
string | null