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
Checklist
Getting started on a home page: what's done, what's next, and how to do it. The next task is open; a task is ticked when your app sets done from real state, never by a click on the box. Dismissible, and remembered as dismissed per browser with storage-key.
Get started
0 of 0 done
People you invite get an email with a link to join.
Free works for one person. Teams need a paid plan.
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
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
heading | heading | string | "" | The heading, e.g. "Get started". |
dismissible | dismissible | boolean | false | Show a dismiss button. |
storageKey | storage-key | string | "" | Remember a dismissal in this browser under this key (localStorage), and stay hidden on later visits. |
Events
| Event | Description |
|---|---|
dismiss | The reader dismissed the checklist (it hides itself). |
Slots
| Slot | Description |
|---|---|
| default | lit-material-checklist-item elements. |
complete | Shown in place of the progress line once every task is done. |
CSS parts
| Part | Description |
|---|---|
card | The outer box. |
progress | The progress bar. |
dismiss | The dismiss button. |