<Card style={{ width: "320px" }}>
<Accordion.Root type="single" defaultValue="item-1" collapsible>
<Accordion.Item value="item-1">
<Accordion.Header style={{ margin: 0 }}>
<Accordion.Trigger asChild>{target => target(Button, { variant: "ghost", color: "gray", highContrast: true, style: { width: "100%", "justify-content": "space-between" }, children: <>Is it accessible?<ChevronDownIcon aria-hidden="true" /></> })}</Accordion.Trigger>
</Accordion.Header>
<Accordion.Content><Text as="p" size="2" color="gray" my="2">Yes. It follows the WAI-ARIA accordion pattern.</Text></Accordion.Content>
</Accordion.Item>
<Separator size="4" my="2" />
<Accordion.Item value="item-2">
<Accordion.Header style={{ margin: 0 }}>
<Accordion.Trigger asChild>{target => target(Button, { variant: "ghost", color: "gray", highContrast: true, style: { width: "100%", "justify-content": "space-between" }, children: <>Does it follow the theme?<ChevronDownIcon aria-hidden="true" /></> })}</Accordion.Trigger>
</Accordion.Header>
<Accordion.Content><Text as="p" size="2" color="gray" my="2">Yes. Colors, radius and scaling come from the nearest Theme.</Text></Accordion.Content>
</Accordion.Item>
</Accordion.Root>
</Card>