Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic
Navigation

Steps <pm-steps>

Steps (wizard / checkout progress). Steps before current are complete.

Full screen

Props

<script type="module"> import '@prismora/css'; import '@prismora/elements/icon'; import '@prismora/elements/steps'; import { registerIcons } from '@prismora/elements/icon'; import { creditCard } from '@prismora/icons'; registerIcons([creditCard]); </script> <pm-steps current="1" label="Checkout"> <pm-step label="Cart" description="3 items"></pm-step> <pm-step label="Shipping" description="Address and method"></pm-step> <pm-step label="Payment"> <pm-icon slot="icon" name="credit-card"></pm-icon> </pm-step> <pm-step label="Review"></pm-step> </pm-steps>

Attributes

AttributeTypeDefaultDescription
currentnumber0Index (0-based) of the current step.
orientation'horizontal' | 'vertical'horizontalLayout and arrow-key direction: horizontal or vertical.
clickablebooleanfalseCompleted steps can be revisited (emits pm-change).
labelstringProgressAccessible name (and visible label where the component shows one).

Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.

Events

EventReact / Svelte propDescription
pm-changeonPmChangeA step was chosen (only with clickable).

Slots

SlotDescription
(default)pm-step elements.

<pm-step>

One step in a <pm-steps> progress indicator.

Attributes

AttributeTypeDefaultDescription
iconstring—Registered icon name (see registerIcons); an icon slot overrides it.
labelstring—Accessible name (and visible label where the component shows one).
descriptionstring—Supporting text under the title.
status'complete' | 'current' | 'upcoming' | 'error'—Override the derived status (e.g. error).
disabledbooleanfalseNot interactive (and not submitted, for form controls).

Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.

Slots

SlotDescription
iconReplaces the number in the marker.

Used in templates

CheckoutOnboarding wizard