# `<alta-quest-rail>`

> The panel that holds a quest beside the page: normal, wide, full screen or folded; a bottom sheet on a phone.

The panel that holds a quest beside the page: normal, wide, full screen or folded; a bottom sheet on a phone.

[All components](https://docs.altasystem.ai/ui/components/)

## States

The closed list `data-state` takes on the element.

- <span id="state-collapsed"></span>`collapsed`
- <span id="state-normal"></span>`normal`
- <span id="state-wide"></span>`wide`
- <span id="state-full"></span>`full`

## Other attributes

On the element, or on a part (`part: attribute`). A list of values is closed.

| Attribute | On | Values |
|---|---|---|
| `data-layout` | the element | `side`, `sheet` |
| `data-sheet` | the element | `peek`, `half`, `full` |
| `data-dragging` | the element | present or absent |
| `data-empty` | the element | present or absent |
| `data-side` | the element | `end`, `start` |
| `data-placement` | the element | `fixed`, `inline` |
| `data-size` | `size-button` | `normal`, `wide`, `full` |

## Events

Dispatched on the element, bubbling. Listen with `addEventListener`.

- <span id="event-alta-rail-size"></span>`alta-rail-size`
- <span id="event-alta-rail-toggle"></span>`alta-rail-toggle`

## Parts

Every node you can style, as `[data-part="…"]`.

`handle` · `header` · `top` · `eyebrow` · `progress` · `progress-text` · `progress-bar` · `progress-fill` · `controls` · `sizes` · `size-button` · `collapse` · `title` · `body` · `empty` · `chain` · `footer` · `tags` · `tab` · `tab-ring` · `tab-title` · `sheet-grip`

## Slots

Children with `slot="…"` replace or add to these places.

`header-extra` · `body` · `footer` · `empty`

## Draws inside itself

[`<alta-step-chain>`](https://docs.altasystem.ai/ui/components/step-chain) · [`<alta-unlock-tags>`](https://docs.altasystem.ai/ui/components/unlock-tags)

## Style it

```css
[data-aui="quest-rail"][data-state="full"] [data-part="handle"] { /* … */ }
```

## Words it reads

Keys of the string tables (override them on `<alta-provider>`).

`rail.`

## Files

`packages/ui/src/elements/quest-rail.ts` · `packages/ui/styles/components/rail.css`
