Rebar UI

1.0

opinion

Collapsible

One region that opens and closes under a button.

Project detailsContent leaves the page when closed
Open

£48,200 budget, 84% complete.

Disabled
Long label

In context

Project cardExtra detail tucked under the summary
Depot signage
Review

Due 21 Nov

Wayfinding for the three northern depots.

Props

PropTypeRequiredDefault
openboolean | undefinedNo—
defaultOpenboolean | undefinedNo—
onOpenChange((open: boolean) => void) | undefinedNo—
triggerReactNodeYes—
childrenReactNodeYes—
disabledboolean | undefinedNo—
bionicboolean | undefinedNo—
bionicOptionsBionicOptions | undefinedNo—

data-rebar-* attributes

data-rebar-component="collapsible", data-rebar-open (boolean) on the root; data-rebar-part="trigger" | "content".

Migrating to Ant Design

No direct single-panel equivalent in AntD — its Collapse component always uses the same multi-item items array Accordion maps to. On migration, a lone Collapsible becomes a one-item AntD Collapse (or a plain conditional render with a button, if pulling in the whole Collapse component for one panel feels heavy).