Layout
Collapsible
A single heading that shows or hides the content beneath it.
Group: Layout. Exports: Collapsible. shadcn/ui equivalent: Collapsible (matches).
Usage
import { Collapsible } from "./halaska-kit";
Collapsible props
titlestring: Heading text.childrenReactNode: Content.defaultOpenboolean(default false):
Accessibility
- The heading is a native button with aria-expanded, so Enter and Space toggle it.
- Closed content is hidden from assistive technology and from Tab.
- Open state is internal, set once with defaultOpen.
Halaska UI · Components · Patterns · Screens · Install