Skip to content

<alta-quest-rail> ​

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

All components

States ​

The closed list data-state takes on the element.

  • collapsed
  • normal
  • wide
  • full

Other attributes ​

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

AttributeOnValues
data-layoutthe elementside, sheet
data-sheetthe elementpeek, half, full
data-draggingthe elementpresent or absent
data-emptythe elementpresent or absent
data-sidethe elementend, start
data-placementthe elementfixed, inline
data-sizesize-buttonnormal, wide, full

Events ​

Dispatched on the element, bubbling. Listen with addEventListener.

  • alta-rail-size
  • 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> · <alta-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

Alta OS is open source (MIT).