structyl

Collapsible

stable

An interactive component that expands / collapses a panel.

Basic usage

Examples

Controlled

Fully controlled open state with a dynamic toggle indicator.

Added keyboard support, reduced motion handling, and token-based styling.

Release notes disclosure

Use Collapsible for compact optional content with controlled or uncontrolled state.

Added searchable selects, multi-select values, and expanded component examples.

Features

  • Smooth height animation.
  • Controlled or uncontrolled.

Installation

bash
pnpm dlx structyl add collapsible

API Reference

Collapsible API reference

Full props, types, defaults, and all 3 parts.

View API
Collapsible | structyl