# Modal
An overlay dialog that appears on top of the main content to focus user attention.
## Usage
Use standalone.
```svelte
Content
```
## Anatomy
The `class` attribute values represent part names. Other attributes represent their corresponding props.
```svelte
```
## Props
| Name | Type | Default | Description |
|---|---|---|---|
| `children*` | `Snippet` | - | Modal content; receives the variant as its argument |
| `open` | `boolean` | `false` | Bindable open state |
| `closable` | `boolean` | `true` | Whether light dismiss is enabled; `false` blocks both backdrop-click and Escape |
| `duration` | `number` | `200` | Open/close animation timing in ms, published as the `--svs-duration` custom property |
| `cssvar` | `Record` | - | Renames the published animation-timing custom property; `cssvar.duration` makes the Modal read `--svs-duration` from a caller-named token |
| `ariaLabel` | `string` | - | Accessible label for the dialog |
| `element` | `HTMLDialogElement` | - | Bindable root element |
| `styling` | `SVSClass` | - | Styling override |
| `variant` | `SVSVariant` | `NEUTRAL` | Modal variant |
`*` required. Other `HTMLDialogAttributes` are passed to `