Skip to content

components/disclosure

@fungi.computer/caps


@fungi.computer/caps / components/disclosure

DisclosureTone = "neutral" | "error"

Semantic tone of the disclosure header.


DisclosureSize = "group" | "row"

Density: group for a summary header, row for a compact nested row.


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.

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.

DisclosureProps

Element