Getting Started
Foundations
Components
Search for a command to run...
Collapsible components allow users to toggle the visibility of content sections, helping conserve screen space and reduce cognitive load by hiding secondary information until needed. They're commonly used in sidebars, FAQ sections, settings panels, or anywhere progressive disclosure is beneficial. Unlike accordions where only one section can be open at a time, collapsibles operate independently.
Built on top of Radix UI's Collapsible primitive with smooth animations, accessibility support including proper ARIA attributes, and keyboard navigation.
import { Collapsible } from "@strongtie/design-system/collapsible"This module exports the following components:
CollapsibleCollapsibleTriggerCollapsibleContentAll components extend Radix UI primitives. See the Radix UI documentation for all available props.
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
The following data attributes are used to identify component parts:
collapsiblecollapsible-contentcollapsible-triggerThis component inherits accessibility features from Radix UI, including: