Checklist

Material Design 3-styled stepper / wizard-progress web components (lit-material-stepper, lit-material-step).

  • 7.0 KB gzipped
  • @lit-material/stepper 1.8.0
  • Renders on the server

Example

Install

npm install @lit-material/stepper @lit-material/tokens
import "@lit-material/stepper/checklist.js";

Link @lit-material/tokens/css/index.css once per page for the colour, type and shape tokens. Install guide

API

<lit-material-checklist>

A getting-started checklist: a heading, "2 of 4 done" with a progress bar, and the tasks. The next task to do is open; the others open on a click. Optionally dismissible, and remembered as dismissed per browser with storage-key.

Properties

PropertyAttributeTypeDefaultDescription
headingheadingstring""The heading, e.g. "Get started".
dismissibledismissiblebooleanfalseShow a dismiss button.
storageKeystorage-keystring""Remember a dismissal in this browser under this key (localStorage), and stay hidden on later visits.

Events

EventDescription
dismissThe reader dismissed the checklist (it hides itself).

Slots

SlotDescription
defaultlit-material-checklist-item elements.
completeShown in place of the progress line once every task is done.

CSS parts

PartDescription
cardThe outer box.
progressThe progress bar.
dismissThe dismiss button.

Source on GitHub npm