Collapsible

One section behind a trigger.

Example

tsx
<Collapsible>
  <CollapsibleTrigger>Show details</CollapsibleTrigger>
  <CollapsibleContent>
    <Text>The request took 42 ms and returned 3 rows.</Text>
  </CollapsibleContent>
</Collapsible>

Usage

Pages are built on the server: import the tags from @dash/server and return the tree. The browser runtime draws it.
tsx
import { Collapsible, CollapsibleTrigger, CollapsibleContent, Text } from "@dash/server";

Props

CollapsibleProps

Prop
Type
Description
defaultOpenboolean
openboolean
onOpenChange(open: boolean) => void
PreviousAccordion
NextDialog
On this page