Components

Collapsible

Collapsibles show and hide a section of content. Use them to keep secondary information out of the way until it is needed.

Stable
GitHub

Anatomy

Anatomy
import {Collapsible} from '@staffbase/spark';

<Collapsible.Root>
  <Collapsible.Trigger />
  <Collapsible.Content />
</Collapsible.Root>;

API reference

Root

Inherits props fromBase UI Collapsible Root

Trigger

Inherits props fromBase UI Collapsible Trigger

Content

Inherits props fromBase UI Collapsible Panel