0.0.4 • Published 2 years ago

@unc-dsi/unc-horizontal-stepper v0.0.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

<unc-horizontal-stepper>

<unc-horizontal-stepper> is helpful for creating wizard.

<unc-horizontal-stepper current-step="1">
    <unc-horizontal-step>Step 1</unc-horizontal-step>
    <unc-horizontal-step>Step 2</unc-horizontal-step>
    <unc-horizontal-step>Step 3</unc-horizontal-step>
</unc-horizontal-stepper>

screenshot

Attributes / Properties

AttributePropertyDescription
current-stepcurrentStepSet/get the current step

Events

NameDescription
selectFire when the current step change. Returns the new current step index : {detail: { currentStep }}

Styling

NameDefault Lumo valueDefault valueDescription
--unc-horizontal-stepper-border-radius--lumo-border-radius-l.5emRadius of the rounded corners
--unc-horizontal-stepper-box-shadow--lumo-box-shadow-xl0 4px 24px -3px hsla(214, 53%, 23%, 0.16), 0 18px 64px -8px hsla(214, 47%, 21%, 0.38Shadow around the stepper
--unc-horizontal-stepper-background-color--lumo-primary-colorhsl(214, 90%, 50%)Background color of the stepper
--unc-horizontal-step-dot-color-active--lumo-base-color#fffDot's color of an active dot
--unc-horizontal-step-color-inactive--lumo-disabled-text-colorhsla(214, 50%, 22%, 0.26)Dot's color of an inactive dot
--unc-horizontal-step-dot-sizeN/A13pxSize of a dot
--unc-horizontal-step-line-heightN/A2pxHeight of line between dots

License

Apache License 2.0