components/disclosure
@fungi.computer/caps / components/disclosure
components/disclosure
Section titled “components/disclosure”Type Aliases
Section titled “Type Aliases”DisclosureTone
Section titled “DisclosureTone”DisclosureTone =
"neutral"|"error"
Semantic tone of the disclosure header.
DisclosureSize
Section titled “DisclosureSize”DisclosureSize =
"group"|"row"
Density: group for a summary header, row for a compact nested row.
DisclosureProps
Section titled “DisclosureProps”DisclosureProps =
Readonly<{open:boolean;onOpenChange: (open) =>void;summary:ReactNode;leading?:ReactNode;trailing?:ReactNode;children?:ReactNode;tone?:DisclosureTone;size?:DisclosureSize;className?:string; }>
Props accepted by Disclosure.
Functions
Section titled “Functions”Disclosure()
Section titled “Disclosure()”Disclosure(
__namedParameters):Element
A controlled one-line disclosure over Base UI Collapsible. The header is a
native button carrying aria-expanded and aria-controls, so Enter and Space
toggle it.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”Returns
Section titled “Returns”Element