# swc-accordion

An accordion component that groups expandable content sections.

```js
import '@adobe/spectrum-wc/components/accordion/index.js';
// <swc-accordion></swc-accordion>
```

## Attributes

| Name             | Type                    | Default     | Description                                                                                             |
| ---------------- | ----------------------- | ----------- | ------------------------------------------------------------------------------------------------------- |
| `size`           | `ElementSize`           | -           | Size applied to all items.                                                                              |
| `allowMultiple`  | `boolean`               | -           | Reflected as `allow-multiple`. When set, multiple items may be open at the same time.                   |
| `level`          | `AccordionHeadingLevel` | `3`         | Heading level applied to every item header (2–6). Defaults to 3. Values outside that range are clamped. |
| `density`        | `AccordionDensity`      | `'regular'` | Controls vertical spacing between items.                                                                |
| `quiet`          | `boolean`               | `false`     | Renders the accordion in its quiet (no-border) visual variant.                                          |
| `disabled`       | `boolean`               | `false`     | Disables all items in the accordion. Individual items may also be disabled independently.               |
| `allow-multiple` | `boolean`               | `false`     | When set, multiple items may be open at the same time. By default only one item can be open.            |

## Slots

| Name        | Description                                |
| ----------- | ------------------------------------------ |
| `(default)` | One or more `swc-accordion-item` elements. |

## CSS Custom Properties

| Name                              | Description                           |
| --------------------------------- | ------------------------------------- |
| `--swc-accordion-min-inline-size` | Minimum inline size of the accordion. |
