Skip to content
Core ElementsFree

Collapsible

A single collapsible panel controlled by a trigger button.

Usage

Lorem ipsum dolor sit amet consectetur adipisicing elit. In magnam quod natus deleniti.

Installation

bash
npm install @wunderui/react

Then import what you need:

tsx
import {
  Collapsible,
  CollapsibleContent,
  CollapsibleTrigger,
} from "@wunderui/react"

Examples

Closed

Only the trigger shows; click it to open the panel.

Open

The panel below the trigger is expanded.

Lorem ipsum dolor sit amet consectetur adipisicing elit. In magnam quod natus deleniti.

In context

How the component is used inside real screens — the same compositions as the Usage section of the Figma page.

FAQ card

Several questions stacked, one of them open.

Frequently asked questions
Lorem ipsum dolor sit amet consectetur adipisicing elit. In magnam quod natus deleniti.

API Reference

PropTypeDefault
defaultOpenbooleanfalse
openboolean—
onOpenChange(open: boolean) => void—