<Accordion type="single" defaultValue="what">
<AccordionItem value="what">
<AccordionTrigger>What does the browser download?</AccordionTrigger>
<AccordionContent>
<Text>One runtime, the same for every app. Pages arrive as data.</Text>
</AccordionContent>
</AccordionItem>
<AccordionItem value="where">
<AccordionTrigger>Where does it run?</AccordionTrigger>
<AccordionContent>
<Text>On Bun, Deno, or Cloudflare Workers with D1.</Text>
</AccordionContent>
</AccordionItem>
</Accordion>import { Accordion, AccordionItem, AccordionTrigger, AccordionContent, Text } from "@dash/server";Prop | Type | Description |
|---|---|---|
| type | "single" | "multiple" | |
| defaultValue | string | string[] | |
| value | string | string[] | |
| onValueChange | (value: string | string[]) => void |
Prop | Type | Description |
|---|---|---|
| value (required) | string |