Collapsible

An interactive component which expands/collapses a panel.

Features

How to use the Radix UI Collapsible

The Collapsible Component is in the "Components Panel" under the "Radix" section. Click on it or drag it onto the canvas. The Collapsible will populate a template that's easy to adjust for your needs.

Radix UI Collapsible component within Webstudio

The Collapsible component consists of three main parts:

  1. Collapsible: The root component that controls the collapsible behavior.

  2. Collapsible Trigger: The button that toggles the collapsible.

  3. Collapsible Content: The component that contains the collapsible content.

Customizing the Collapsible

To customize the Collapsible component:

  1. Collapsible Trigger: Modify the trigger element to change what users click to expand/collapse the content. This can be text, an icon, or any combination of elements.

  2. Collapsible Content: Edit the content section to add whatever elements you want to show/hide when the collapsible is toggled.

  3. Styling: Any of the three components can be styled to match your design requirements.

Using Collapsible for UI Patterns

The Collapsible component is useful for various UI patterns:

  • FAQ sections

  • "Show more" content sections

  • Settings or preferences panels

  • Mobile navigation menus

  • Detail views that can be expanded/collapsed

Last updated

Was this helpful?