Set to true when page is being edited. Shows pen icon on step. Defaults to false.
The flavor of the component determines the visual style of the component.
The step number to display. This is automatically assigned by the parent zeta-stepper component; do not set this property manually.
Invoked when the component is added to the document's DOM.
In connectedCallback() you should setup tasks that should only occur when
the element is connected to the document. The most common of these is
adding event listeners to nodes external to the element, like a keydown
event handler added to the window.
connectedCallback() {
super.connectedCallback();
addEventListener('keydown', this._handleKeydown);
}
Typically, anything done in connectedCallback() should be undone when the
element is disconnected, in disconnectedCallback().
ProtectedrenderInvoked on each update to perform rendering tasks. This method may return
any value renderable by lit-html's ChildPart - typically a
TemplateResult. Setting properties inside this method will not trigger
the element to update.
StaticstylesArray of styles to apply to the element. The styles should be defined using the css tag function, via constructible stylesheets, or imported from native CSS module scripts.
Note on Content Security Policy:
Element styles are implemented with <style> tags when the browser doesn't
support adopted StyleSheets. To use such <style> tags with the style-src
CSP directive, the style-src value must either include 'unsafe-inline' or
nonce-<base64-value> with <base64-value> replaced be a server-generated
nonce.
To provide a nonce to use on generated <style> elements, set
window.litNonce to a server-generated nonce in your page's HTML, before
loading application code:
<script>
// Generated and unique per request:
window.litNonce = 'a1b2c3d4';
</script>
The step items that the stepper uses to convey progress through numbered steps. Steps are automatically incremented starting from 1.
Slot
Cssproperty
--step-title-width - Width of the title text. Defaults to 230px.
Cssproperty
--step-edit-icon-left - Left position of the edit icon. Defaults to 7px.
Cssproperty
--step-edit-icon-border-color - Border color of the edit icon. Defaults to rgb(250, 251, 252).
Cssproperty
--step-edit-icon-color - Color of the edit icon. Defaults to var(--main-subtle).
Cssproperty
--step-success-icon-color - Color of the success checkmark icon. Defaults to var(--state-default-focus).
Cssproperty
--step-text-default-color - Text color for default flavor. Defaults to var(--main-default).
Cssproperty
--step-text-active-color - Text color for active flavor. Defaults to var(--state-default-focus).
Cssproperty
--step-background-default-color - Background color for default flavor. Defaults to var(--surface-default).
Cssproperty
--step-background-active-color - Background color for active flavor. Defaults to var(--surface-primary).
Cssproperty
--step-background-partial-color - Background color for partial flavor. Defaults to var(--surface-positive-subtle).
Cssproperty
--step-background-success-color - Background color for success flavor. Defaults to var(--surface-positive).
Figma
https://www.figma.com/design/1PXgz5r06wlObIrucWsOqx/Stepper?node-id=40231-1812&m=dev
Storybook
https://design.zebra.com/web/storybook/?path=/docs/components-stepper--docs