Accordion
Compound API (alternating `Trigger` / `Content`)
Compound API (alternating Trigger / Content) — see the example below.
A brief introduction to the topic and links to further resources.
Extended settings and tips for everyday use.
tsx
import { Accordion } from "~/components/ui/base/accordion";
<Accordion.Root>
<Accordion.Trigger>Basic information</Accordion.Trigger>
<Accordion.Content>
A brief introduction to the topic and links to further resources.
</Accordion.Content>
<Accordion.Trigger>Advanced options</Accordion.Trigger>
<Accordion.Content>
Extended settings and tips for everyday use.
</Accordion.Content>
</Accordion.Root>
Single open panel
Single open panel — see the example below.
A framework focused on instant loading and minimal JavaScript on the client.
The server can resume the application state without a large hydration bundle.
Fine-grained signals for efficient UI updates.
tsx
import { AccordionList } from "~/components/ui/base/accordion";
const items = [
{
value: "basics",
title: "What is Qwik?",
content: "A framework focused on instant loading and minimal JavaScript on the client.",
},
{
value: "resumability",
title: "What is resumability?",
content: "The server can resume the application state without a large hydration bundle.",
},
{
value: "signals",
title: "Reactivity",
content: "Fine-grained signals for efficient UI updates.",
},
];
<AccordionList items={items} />
Multiple open panels
Multiple open panels — see the example below.
A framework focused on instant loading and minimal JavaScript on the client.
The server can resume the application state without a large hydration bundle.
Fine-grained signals for efficient UI updates.
tsx
import { AccordionList } from "~/components/ui/base/accordion";
const items = [
{
value: "basics",
title: "What is Qwik?",
content: "A framework focused on instant loading and minimal JavaScript on the client.",
},
{
value: "resumability",
title: "What is resumability?",
content: "The server can resume the application state without a large hydration bundle.",
},
{
value: "signals",
title: "Reactivity",
content: "Fine-grained signals for efficient UI updates.",
},
];
<AccordionList items={items} multiple />
Metadata
Source: meta.generated.json (see npm run generate)
File base/accordion/meta.generated.json not found or path not allowed.