Docs
Accordion

Accordion

A vertically stacked set of interactive headings that each reveal a section of content.

Loading...

Installation

	npx svell@latest add accordion

Usage

	<script lang="ts">
  import * as Accordion from "$lib/components/ui/accordion";
</script>
 
<Accordion.Root>
  <Accordion.Item value="item-1">
    <Accordion.Trigger>Is it accessible?</Accordion.Trigger>
    <Accordion.Content>
      Yes. It adheres to the WAI-ARIA design pattern.
    </Accordion.Content>
  </Accordion.Item>
</Accordion.Root>

Built & designed by shadcn. Ported to Svelte by netronk. The source code is available on GitHub.