bit Bheadless

Disclosure

A single show/hide region toggled by a button โ€” the simplest collapsible primitive.

Implementation: CSS Tailwind

Basic Disclosure

aria-expanded, aria-controls, and aria-labelledby are wired automatically.

Default Open

Set DefaultOpen="true" to render open initially.

I'm open by default. Click the button to close me.

Render Context (rotating chevron + Close)

All three components expose a BitBhDisclosureRenderContext. Use it to drive UI from the open state and call d.Close().

Disabled

data-disabled: dims the row.

Controlled

External Open + OnOpenChange.

Open: false
An unhandled error has occurred. Reload ๐Ÿ—™