Collapsible

A disclosure that expands to reveal additional content.

Order #4189

StatusShipped

Shipping address

100 Market St, San Francisco

Items

2x Studio Headphones

Usage

Include CSS

Import Tailwind and a Basecoat style bundle.

@import 'tailwindcss';
@import 'basecoat-css/vega.css';

Add your disclosure HTML

Put the trigger text in a <summary> as the first child of <details>. The browser manages the open state and handles pointer and keyboard activation. Content opens and closes instantly. The order preview keeps its heading and status outside the disclosure. Its icon-only summary is positioned beside the heading, preserving native keyboard and pointer behavior.

<details>
  <summary>Shipping options</summary>
  <p>Orders ship within two business days.</p>
</details>

Examples

Basic

Product details

This panel can be expanded or collapsed to reveal additional content.

Settings panel

Keep the main settings visible and reveal additional controls with a native disclosure.

Radius

Set the corner radius of the element.

File tree

Nest disclosures to reveal branches independently. This example also uses Tabs, which requires the Basecoat runtime and Tabs script or the full JavaScript bundle.

components
ui
lib
hooks
types
public

RTL

Set dir="rtl" on the disclosure or an ancestor.

الطلب #4189

الحالةتم الشحن

عنوان الشحن

100 Market St, San Francisco

العناصر

2x سماعات الاستوديو