Skip to main content
  1. Docs
  2. Components
  3. Navigation

Collapsible

One section that folds, with no rules: Show more, or Advanced settings.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<button aria-expanded>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Playground

Every prop, live, and the code it takes.

Trigger
advanced-settings.tsx
import { ChevronDownIcon } from "@qeetrix/icons";
import { Button, Collapsible, CollapsiblePanel, CollapsibleTrigger } from "@qeetrix/react";

<Collapsible>
  <CollapsibleTrigger
    render={<Button variant="ghost" icon={ChevronDownIcon}>Advanced settings</Button>}
  />
  <CollapsiblePanel>…</CollapsiblePanel>
</Collapsible>

02

Advanced settings

The trigger is your own control, through render: here a ghost Button.

03

Show more

open and onOpenChange: the trigger after the panel, its words following the state.

Priya SharmaRahul Verma

04

Open at first

defaultOpen: open until it's closed.

Token lifetime3,600 s
Clock skew30 s
Audienceapi.id.qeet.in

05

Disabled

disabled: the trigger does nothing; the panel stays as it is.

Next — CollapsibleUsage