byronwade/ui
Application UI

Data display · Application UI

Collapsible

Expand/collapse region with trigger and animated panel.

@byronwade/foundation@byronwade/utils@base-ui/react

Feature showcase

Installation

Features

  • 5 examples

    Default, Uncontrolled, Disabled, Faq, With Rich Content.

API

Props

PropTypeDefaultDescription
openboolean-Controlled open state of the panel.
defaultOpenbooleanfalseUncontrolled initial open state.
onOpenChange(open: boolean) => void-Fires when the open state changes.
disabledbooleanfalseDisable the trigger.

Dependencies

PackageKindDescription
@byronwade/foundationregistryInstalled through the byronwade/ui registry.
@byronwade/utilsregistryInstalled through the byronwade/ui registry.
@base-ui/reactnpmInstalled from npm.

Source and related

FilePath
Componentregistry/ui/collapsible.tsx
Default examplecontent/examples/collapsible/default.tsx
Uncontrolled examplecontent/examples/collapsible/uncontrolled.tsx
Disabled examplecontent/examples/collapsible/disabled.tsx
Faq examplecontent/examples/collapsible/faq.tsx
With Rich Content examplecontent/examples/collapsible/with-rich-content.tsx