0.0.8 • Published 2 years ago

@unc-dsi/unc-wizard v0.0.8

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

<unc-wizard>

<unc-wizard> is a wizard with stepper on top.

<unc-wizard>
    <unc-wizard-page label="User Info">
        <div>
            <h3>Some user info form</h3>
        </div>
        <vaadin-button slot="next" theme="primary">Next</vaadin-button>
    </unc-wizard-page>
    <unc-wizard-page label="Address">
        <div>
            <h3>Address form</h3>
        </div>
        <vaadin-button slot="left" theme="secondary">Previous</vaadin-button>
        <vaadin-button slot="right" theme="primary">Finish</vaadin-button>
    </unc-wizard-page>
</unc-wizard>

screenshot

Dependencies

NameNPMUsage
<vaadin-vertical-layout>npm versionTo arrange the wizard
<vaadin-horizontal-layout>npm versionTo arrange the wizard

Events

NameDescription
page-changeFire when the displayed page changed. Contains indexes of the previous and the new current page: detail: {previousIndex, currentIndex }

Styling

NameDefault Lumo valueDefault valueDescription
--unc-wizard-margin--lumo-space-m1remMargin around the wizard
--unc-wizard-margin-top--lumo-space-l1.5remMargin on top of the wizard
--unc-wizard-border-color--lumo-shade-10pcthsla(214, 57%, 24%, 0.1)Color of the border around the wizard
--unc-wizard-border-radius--lumo-border-radius-l0.5remRadius of the border around the wizard
--wizard-shadow--lumo-box-shadow-s0 2px 4px -1px hsla(214, 53%, 23%, 0.16), 0 3px 12px -1px hsla(214, 50%, 22%, 0.26Shadow around the wizard

See also Styling section in <unc-horizontal-stepper>.

License

Apache License 2.0