Skip to main content

Starwind UI v3.0 beta is now available! Read the migration guide

Collapsible

@starwind-ui starred 3 repositories

astro

Installation

Framework Availability

Astro Available React Available

Collapsible is available for Astro and React.

Usage

General Notes

The Collapsible component provides a way to show and hide content with a trigger button. It’s useful for FAQs, expandable sections, and progressive disclosure patterns.

The essential components are Collapsible, CollapsibleTrigger, and CollapsibleContent.

API Reference

Primitive And Runtime API

Use these references when you need the lower-level behavior APIs behind Collapsible.

Runtime API

Collapsible primitive
createCollapsible from @starwind-ui/runtime/collapsible

Changelog

v2.0.0

  • Rebuilt Collapsible on Starwind Runtime for open state and panel lifecycle.
  • See the Collapsible Primitive for the underlying unstyled anatomy and behavior API.