logo-icon
STW UI

Accordion

Accordion is used for showing and hiding content.

Usage

svelte
import { Accordion } from 'stwui';
// OR
import Accordion from 'stwui/accordion'; // for tree shaking

Basic Accordion

Accordion Slots

default <Accordion.Item />

Accordion.Item Props

open boolean false

Accordion.Item Slots

title <Accordion.Item.Title slot="title" />
content <Accordion.Item.Content slot="content" />

Accordion.Item.Title Slots

default

Accordion.Item.Content Slots

default

Accordion Class Identifiers

stwui-accordion
stwui-accordion-item
stwui-accordion-item-title
stwui-accordion-item-content
stwui-accordion-chevron-container