Collapsible
An interactive component which expands/collapses a panel.
@bext starred 3 repositories
@bext/core
@bext/prism
@bext/ui
// src/components/ui/collapsible.tsx — a single expandable region. Reuses the accordion island hooks
// (data-ui="accordion-trigger" / "accordion-content").
Installation
$ bext ui add collapsible
Copy and paste the following into src/components/ui/collapsible.tsx.
// src/components/ui/collapsible.tsx — a single expandable region. Reuses the accordion island hooks
// (data-ui="accordion-trigger" / "accordion-content").
This component is interactive — make sure the shared island is loaded (see Islands). It reacts to data-ui="collapsible" hooks.
On This Page