# Checklist (Notchset): prompt.md (v2.0.0)

- id: `checklist` · version 2.0.0 · component · pro (Pro)
- category: Choices and toggles
- build: one set of files for every shadcn style
- install: `npx shadcn@latest add @notchset-pro/checklist`
- npm dependencies: lucide-react@^1
- registry dependencies: utils, https://notchset.dev/r/notchset-foundation.json, @notchset/button, @notchset/checkbox, @notchset/icon-button, @notchset/rolling-number, @notchset/text-field
- docs: https://notchset.dev/components/checklist
- The install command carries everything this item needs (files, CSS, tokens, npm and registry dependencies). Prefer it to copying source by hand.

Each item is a tick, an optional planned time, the item and one quiet line: your note, who ticked it or the pick. With no times the next row's end holds its one action, so a setup list sits on it. A note is added in place. One light glides to the next row; the count lands with your tick; no streaks or badges..

## Build it
- Stack: React 18.3 or 19, TypeScript, Tailwind CSS v4 utility classes on the foundation's roles, a components.json (imports use its aliases).
- Packages: `lucide-react@^1` beyond `react` and `react-dom`.
- Files: `components/ui/notchset/checklist.tsx`; shared code: `lib/notchset/controllable.ts`, `lib/notchset/feedback.ts`, `lib/notchset/icons.ts`, `lib/notchset/motion.ts`.
- Registry dependencies, installed with it automatically: shadcn `utils` (cn), `notchset-foundation`, `button`, `checkbox`, `icon-button`, `rolling-number`, `text-field`.
- Builds: one set of files, the same for every shadcn style.
- Exports to keep: `Checklist`, and every exported type.
- CSS: the install adds the notchset foundation (its roles, keyframes and motion switch, reading your shadcn tokens for colour) to your global stylesheet once. Nothing to import by hand.
- Re-running `add` (or `--overwrite`) re-applies those rules: put overrides in your own CSS, never in the installed rules.
- Colours: every part reads the foundation's roles (`--ns-canvas`, `--ns-ink`, `--ns-line`, `--ns-signal` …), which read your shadcn tokens (`--background`, `--foreground`, `--border`, `--destructive` …), plus the optional `--success` and `--warning`. Retheme on `:root` or any container; never add Tailwind colour classes inside the component.
- This item reads `--ns-ease`, `--ns-ease-move`, `--ns-hover`, `--ns-icon`, `--ns-ink`, `--ns-ink-2`, `--ns-ink-3`, `--ns-ink-4`, `--ns-line`, `--ns-ok`, `--ns-ok-ink`, `--ns-play-spring`, `--ns-play-swap`, `--ns-radius-menu-row`, `--ns-signal`, `--ns-text-body`, `--ns-text-meta`, `--ns-text-small`, `--ns-time-color`, `--ns-time-panel`, `--ns-weight-medium`.
- Retune it (on any ancestor) with the foundation's roles and hooks: `--ns-agent-b`, `--ns-agent-c`, `--ns-agent-d`, `--ns-agent-drift`, `--ns-agent-fill`, `--ns-agent-h1`, `--ns-agent-h2`, `--ns-agent-h3`, `--ns-agent-shift`, `--ns-avatar-card`, `--ns-avatar-lg`, `--ns-avatar-md`, `--ns-avatar-sm`, `--ns-avatar-xs`, `--ns-bad`, `--ns-bad-ink`, `--ns-band`, `--ns-band-edge`, `--ns-band-grade`, `--ns-band-optimal`, `--ns-banner-beat`, `--ns-banner-radius`, `--ns-beat`, `--ns-beat-ease`, `--ns-bezel`, `--ns-bloom-close`, `--ns-bloom-open`, `--ns-bloom-rise`, `--ns-btn-bad`, `--ns-btn-bad-hover`, `--ns-btn-bad-line`, `--ns-btn-bezel`, `--ns-btn-chosen`, `--ns-btn-gone`, `--ns-btn-morph`, `--ns-btn-ok`, `--ns-btn-press`, `--ns-btn-release`, `--ns-btn-result`, `--ns-btn-roll`, `--ns-btn-stagger`, `--ns-btn-stagger-step`, `--ns-btn-tick`, `--ns-btn-tonal`, `--ns-btn-tonal-edge`, `--ns-btn-tonal-hover`, `--ns-bulk-clear`, `--ns-button`, `--ns-button-field-inset`, `--ns-button-lg`, `--ns-button-sm`, `--ns-canvas`, `--ns-card-tilt`, `--ns-cat-1`, `--ns-cat-2`, `--ns-cat-3`, `--ns-cat-4`, `--ns-cat-5`, `--ns-cat-6`, `--ns-check`, `--ns-check-round`, `--ns-cheer-1`, `--ns-cheer-2`, `--ns-cheer-3`, `--ns-cheer-edge`, `--ns-cheer-fold`, `--ns-cheer-glow`, `--ns-cheer-lift`, `--ns-chip`, `--ns-chip-pick`, `--ns-control`, `--ns-control-lg`, `--ns-control-pad`, `--ns-control-sm`, `--ns-corner`, `--ns-danger`, `--ns-deep`, `--ns-deep-ink`, `--ns-deep-ink-2`, `--ns-deep-line`, `--ns-depth-card`, `--ns-depth-lift`, `--ns-depth-surface`, `--ns-dialog`, `--ns-dialog-grow`, `--ns-dialog-lg`, `--ns-dialog-max`, `--ns-dialog-shrink`, `--ns-dialog-sm`, `--ns-dialog-top`, `--ns-dock-bottom`, `--ns-drop`, `--ns-ease`, `--ns-ease-arrive`, `--ns-ease-breathe`, `--ns-ease-drum`, `--ns-ease-exit`, `--ns-ease-fling`, `--ns-ease-glide`, `--ns-ease-grow`, `--ns-ease-move`, `--ns-ease-panel`, `--ns-ease-pop`, `--ns-ease-press`, `--ns-ease-spring`, `--ns-ebg-arm`, `--ns-ebg-lit`, `--ns-emoji`, `--ns-emoji-md`, `--ns-emoji-sm`, `--ns-field`, `--ns-field-edge`, `--ns-field-h`, `--ns-fill`, `--ns-fill-time`, `--ns-flood-arc`, `--ns-flood-aurora`, `--ns-flood-behind-1`, `--ns-flood-behind-2`, `--ns-flood-bloom`, `--ns-flood-deep`, `--ns-flood-dial-bloom`, `--ns-flood-glass`, `--ns-flood-grain`, `--ns-flood-image`, `--ns-flood-ink`, `--ns-flood-ink-low`, `--ns-flood-light`, `--ns-flood-mid`, `--ns-flood-pale`, `--ns-flood-pane`, `--ns-flood-pane-edge`, `--ns-flood-pill-ink`, `--ns-flood-ribbon`, `--ns-flood-ribbon-core`, `--ns-flood-shadow`, `--ns-flood-sheen`, `--ns-flood-wash`, `--ns-font-body`, `--ns-font-display`, `--ns-font-mono`, `--ns-font-script`, `--ns-glass`, `--ns-glass-blur`, `--ns-glass-shadow`, `--ns-glow`, `--ns-glyph-pad`, `--ns-grain`, `--ns-gutter`, `--ns-header`, `--ns-help-max`, `--ns-hit`, `--ns-hover`, `--ns-icon`, `--ns-icon-lg`, `--ns-icon-sm`, `--ns-icon-stroke`, `--ns-info`, `--ns-info-ink`, `--ns-ink`, `--ns-ink-2`, `--ns-ink-3`, `--ns-ink-4`, `--ns-layer-bar`, `--ns-layer-modal`, `--ns-layer-panel`, `--ns-layer-popup`, `--ns-layer-sticky`, `--ns-layer-tip`, `--ns-layer-toast`, `--ns-layer-zoom`, `--ns-lead-body`, `--ns-lead-figure`, `--ns-lead-large`, `--ns-lead-meta`, `--ns-lead-small`, `--ns-lead-sub`, `--ns-lead-title`, `--ns-leading`, `--ns-leading-prose`, `--ns-leading-title`, `--ns-lift`, `--ns-light-1`, `--ns-light-2`, `--ns-light-3`, `--ns-light-spread`, `--ns-light-strength`, `--ns-line`, `--ns-line-soft`, `--ns-lit-edge`, `--ns-map-grass`, `--ns-map-water`, `--ns-mark-edge`, `--ns-mark-lifted`, `--ns-mark-rest`, `--ns-mark-swap`, `--ns-marker`, `--ns-marker-ink`, `--ns-mc-place`, `--ns-mc-roll`, `--ns-measure`, `--ns-menu-dy`, `--ns-menu-lit`, `--ns-menu-pad`, `--ns-menu-row`, `--ns-menu-rule`, `--ns-mesh`, `--ns-mesh-frost`, `--ns-nest-inset`, `--ns-nest-outer`, `--ns-nest-r`, `--ns-notch-ease`, `--ns-ok`, `--ns-ok-ink`, `--ns-on-fill`, `--ns-orb-body`, `--ns-orb-cool`, `--ns-orb-core`, `--ns-orb-dawn`, `--ns-orb-deep`, `--ns-orb-edge`, `--ns-orb-grain`, `--ns-orb-ground`, `--ns-orb-halo`, `--ns-orb-inner`, `--ns-orb-key`, `--ns-orb-lift`, `--ns-orb-limb`, `--ns-orb-limb-from`, `--ns-orb-rim`, `--ns-orb-skin-hi`, `--ns-orb-skin-lo`, `--ns-orb-skin-mid`, `--ns-orb-warm`, `--ns-palette-min`, `--ns-panel`, `--ns-panel-room`, `--ns-panel-w`, `--ns-panel-w-lg`, `--ns-pick-slot`, `--ns-pill-prop`, `--ns-play-fill`, `--ns-play-fill-color`, `--ns-play-lift`, `--ns-play-lift-y`, `--ns-play-open`, `--ns-play-open-content`, `--ns-play-press`, `--ns-play-press-box`, `--ns-play-reduced`, `--ns-play-ring`, `--ns-play-roll`, `--ns-play-shake`, `--ns-play-spring`, `--ns-play-swap`, `--ns-play-swap-blur`, `--ns-press-min`, `--ns-press-scale`, `--ns-press-x`, `--ns-press-y`, `--ns-primary-hover`, `--ns-primary-press`, `--ns-prism-edge`, `--ns-prism-glint`, `--ns-prism-sheen`, `--ns-prism-tint`, `--ns-pulse`, `--ns-radius`, `--ns-radius-2xl`, `--ns-radius-button`, `--ns-radius-button-lg`, `--ns-radius-button-sm`, `--ns-radius-card`, `--ns-radius-check`, `--ns-radius-control`, `--ns-radius-control-sm`, `--ns-radius-float`, `--ns-radius-full`, `--ns-radius-lg`, `--ns-radius-mark`, `--ns-radius-menu-row`, `--ns-radius-modal`, `--ns-radius-pill`, `--ns-radius-sm`, `--ns-radius-xl`, `--ns-radius-xs`, `--ns-raised`, `--ns-ramp-1`, `--ns-ramp-2`, `--ns-ramp-3`, `--ns-ramp-4`, `--ns-ramp-5`, `--ns-ramp-shine`, `--ns-range`, `--ns-rest-1`, `--ns-rest-2`, `--ns-rest-3`, `--ns-rise`, `--ns-row`, `--ns-row-compact`, `--ns-row-hue`, `--ns-scrim`, `--ns-search-h`, `--ns-segment`, `--ns-segment-inset`, `--ns-segment-lift`, `--ns-segment-sm`, `--ns-selected`, `--ns-series`, `--ns-series-core`, `--ns-series-glint`, `--ns-series-tint`, `--ns-shadow-dialog`, `--ns-shadow-float`, `--ns-shadow-lift`, `--ns-shadow-panel`, `--ns-sheet`, `--ns-sheet-back`, `--ns-sheet-bottom`, `--ns-sheet-drop`, `--ns-sheet-rise`, `--ns-shift`, `--ns-side`, `--ns-signal`, `--ns-signal-ink`, `--ns-signal-wash`, `--ns-sk-figure`, `--ns-sk-land`, `--ns-sk-p`, `--ns-sk-p0`, `--ns-sk-p1`, `--ns-sk-p2`, `--ns-sk-p3`, `--ns-sk-p4`, `--ns-sk-p5`, `--ns-sk-p6`, `--ns-sk-p7`, `--ns-sk-read`, `--ns-sk-sweep`, `--ns-skeleton`, `--ns-skeleton-bone`, `--ns-skeleton-bone-light`, `--ns-skeleton-light`, `--ns-slab`, `--ns-slab-edge`, `--ns-slab-ink`, `--ns-sleep-awake`, `--ns-sleep-deep`, `--ns-sleep-light`, `--ns-sleep-rem`, `--ns-space-1`, `--ns-space-2`, `--ns-space-3`, `--ns-space-4`, `--ns-space-5`, `--ns-space-6`, `--ns-space-8`, `--ns-space-section`, `--ns-stack-fan`, `--ns-stack-fan-gap`, `--ns-stack-fan-lag`, `--ns-stack-on`, `--ns-stagger-item`, `--ns-stagger-mark`, `--ns-stagger-max`, `--ns-standing-critical`, `--ns-standing-in`, `--ns-standing-out`, `--ns-state-doing`, `--ns-state-done`, `--ns-state-review`, `--ns-state-todo`, `--ns-step`, `--ns-step-from`, `--ns-step-sign`, `--ns-swipe-surface`, `--ns-switch-h`, `--ns-switch-w`, `--ns-text-body`, `--ns-text-control`, `--ns-text-control-lg`, `--ns-text-display`, `--ns-text-editorial`, `--ns-text-empty`, `--ns-text-figure`, `--ns-text-giant`, `--ns-text-heading`, `--ns-text-headline`, `--ns-text-input`, `--ns-text-large`, `--ns-text-lede`, `--ns-text-meta`, `--ns-text-record`, `--ns-text-sentence`, `--ns-text-small`, `--ns-text-sub`, `--ns-text-title`, `--ns-theme-fade`, `--ns-tile-shadow`, `--ns-time-born`, `--ns-time-color`, `--ns-time-confirm`, `--ns-time-dialog`, `--ns-time-fling`, `--ns-time-flip`, `--ns-time-glide`, `--ns-time-grow`, `--ns-time-hold`, `--ns-time-menu`, `--ns-time-page`, `--ns-time-panel`, `--ns-time-quick`, `--ns-time-roll`, `--ns-time-settle`, `--ns-time-snap`, `--ns-time-spin`, `--ns-time-spring`, `--ns-time-sweep`, `--ns-time-toast`, `--ns-tint`, `--ns-tint-c`, `--ns-tint-ease`, `--ns-tint-fill`, `--ns-tint-gap`, `--ns-tint-h1`, `--ns-tint-h2`, `--ns-tint-h3`, `--ns-tint-ink`, `--ns-tint-row`, `--ns-tip-fold`, `--ns-tip-grow`, `--ns-toast-bottom`, `--ns-toast-gap`, `--ns-toast-left`, `--ns-toast-lift`, `--ns-toast-peek`, `--ns-toast-scale`, `--ns-toast-w`, `--ns-touch`, `--ns-tracking-body`, `--ns-tracking-caps`, `--ns-tracking-control`, `--ns-tracking-display`, `--ns-tracking-headline`, `--ns-tracking-sub`, `--ns-tracking-title`, `--ns-warn`, `--ns-warn-ink`, `--ns-wash-clay`, `--ns-wash-dusk`, `--ns-wash-graphite`, `--ns-wash-ink`, `--ns-wash-sage`, `--ns-wash-sand`, `--ns-weight-light`, `--ns-weight-medium`, `--ns-weight-regular`, `--ns-weight-strong`, `--ns-well`, `--ns-width-lg`, `--ns-width-md`, `--ns-width-sm`, `--ns-width-xl`.
- Never add Tailwind colour classes inside the component.

```tsx
import { Checklist, type ChecklistItem } from "@/components/ui/notchset/checklist";
```

## Parts
- A single export that takes props.

## Match the original
- Read `components/ui/notchset/checklist.tsx` as the reference implementation before changing or recreating anything, and match it: sizes, colours per theme, motion timings, copy and behaviour.
- If you deviate (a prop you can't honour, a style you changed, a dependency you swapped), say so in your reply, part by part.
- Keep the accessibility contract, the keyboard map and the motion levels listed below.

## Use it when
- A short list of things to do, at set times or in any order (a setup list), ticked as they happen, each with room for a note.

### Not when
- A to-do list with owners and dates is a list of rows; one setting on or off is Switch; a set of steps to finish setup is Stepped setup.

## Built from
- button (`button`), installed with it: reuse it, don't rebuild it
- checkbox (`checkbox`), installed with it: reuse it, don't rebuild it
- icon-button (`icon-button`), installed with it: reuse it, don't rebuild it
- rolling-number (`rolling-number`), installed with it: reuse it, don't rebuild it
- text-field (`text-field`), installed with it: reuse it, don't rebuild it
- Controllable (shared helper, ships with it)
- Feedback (shared helper, ships with it)
- Icons (shared helper, ships with it)
- Motion (shared helper, ships with it)

## Mistakes
- Flipping the tick before the server says so: mark the row busy and pass the stored value
- Adding streaks, badges or confetti: a routine is a habit, not a game
- Putting the save error in a toast: pass it as the row's status, in place

## Usage

```tsx
"use client";
import * as React from "react";
import { Checklist, type ChecklistItem } from "@/components/ui/notchset/checklist";
import { useLessMotion } from "@/lib/notchset/motion";
import { useSelfPlay } from "./self-play";

/*
 * One morning's routine with its times. On view a tick lands on the lit row, the count rolls, and 900ms later the done
 * row folds down into the quiet "2 done" line at the list's foot, whose figure rolls too. Then the hand ticks: each done
 * row folds the same way, and pressing the line opens the done rows again. The quiet "Ticks fail" switch makes each
 * tick come back unsaved while it is on.
 */
const ROWS: ChecklistItem[] = [
  { id: "water", at: "06:45", title: "Glass of water", by: "ticked 06:48" },
  { id: "stretch", at: "07:00", title: "Stretch, 10 min" },
  { id: "walk", at: "07:30", title: "Walk, 30 min", note: "The long loop by the river" },
  { id: "read", at: "08:00", title: "Read 20 pages" },
  { id: "plan", at: "08:30", title: "Plan the day", note: "Three things, no more" },
];
const WORDS = { title: "This morning", saving: "Saving…", unsaved: "Not saved: you're offline. Tick again to retry" };

export default function ChecklistDemo() {
  const failNext = false as boolean;
  return <Routine key={String(failNext)} failNext={failNext} />;
}

function Routine({ failNext }: { failNext: boolean }) {
  const less = useLessMotion();
  const words = WORDS;
  const rows = ROWS;
  const root = React.useRef<HTMLDivElement>(null);
  const play = useSelfPlay(root, { beats: [600], off: less, hold: failNext });
  const [ticked, setTicked] = React.useState<string[]>(["water"]);
  const [busy, setBusy] = React.useState<string | null>(null);
  const [unsaved, setUnsaved] = React.useState<string | null>(null);
  const timer = React.useRef(0);
  React.useEffect(() => () => window.clearTimeout(timer.current), []);
  /* the arrival: the lit row ticked, as a hand would; with less motion it rests ticked */
  const end = !play.mine && play.step < 0 && play.control === "replay" && !failNext;
  React.useEffect(() => {
    if (play.mine || !(play.step === 0 || end)) return;
    // eslint-disable-next-line react-hooks/set-state-in-effect -- the arrival's one tick lands on its beat, as a hand's would
    setTicked((t) => (t.includes("stretch") ? t : [...t, "stretch"]));
  }, [play.step, play.mine, end]);
  const tick = (id: string, on: boolean) => {
    setUnsaved(null);
    if (on && failNext) {
      setBusy(id);
      timer.current = window.setTimeout(() => {
        setBusy(null);
        setUnsaved(id);
      }, 700);
      return;
    }
    setTicked((t) => (on ? [...t.filter((x) => x !== id), id] : t.filter((x) => x !== id)));
  };
  const items = rows.map((r) => ({
    ...r,
    done: ticked.includes(r.id),
    busy: busy === r.id || undefined,
    status:
      unsaved === r.id ? (
        <span className="text-[length:var(--ns-text-small)] text-[var(--ns-bad-ink)]">{words.unsaved}</span>
      ) : busy === r.id ? (
        <span className="text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">{words.saving}</span>
      ) : undefined,
  }));
  return (
    <div ref={root} onPointerDownCapture={play.handOver} onKeyDownCapture={play.handOver} className="w-[min(100%,27.5rem)]">
      {/* the whole list, open, holds the stage's height while rows fold away */}
      <div className="grid grid-cols-[minmax(0,1fr)]">
        <div aria-hidden ref={(el) => void (el && (el.inert = true))} className="invisible col-start-1 row-start-1 min-w-0">
          <Checklist title={words.title} progress items={rows} onNote={() => {}} />
        </div>
        <div className="col-start-1 row-start-1 min-w-0 self-start">
          <Checklist
            title={words.title}
            progress
            fold
            items={items}
            onToggle={tick}
            onNote={() => {}}
          />
        </div>
      </div>
    </div>
  );
}
```

## Props

| Prop | Type | Default | What it does |
|---|---|---|---|
| `items` | `ChecklistItem[]` |  | the rows, in order: each with its id, title, done and optional time, note and status |
| `defaultValue` | `string[]` |  | the ids ticked at first (uncontrolled): the list keeps its own ticks and items' `done` is not read |
| `name` | `string` |  | the form field name: a form sends each ticked row's id under it |
| `onToggle` | `(id: string, done: boolean) => void` |  | called with the row's id and its new done when its tick is pressed |
| `onNote` | `(id: string, note: string) => void` |  | left out, rows take no notes |
| `title` | `string` | `"Today's routine"` | the list's name, read before the count ("Today's routine") |
| `head` | `boolean` | `true` | false: no head row (the host's section names it and carries the count) |
| `progress` | `boolean` | `false` | a small ring by the head's count, filled in the Signature as rows are done and closed in ok on the last |
| `fold` | `boolean` | `false` | done rows fold away (900ms after the tick) into an "N done" line at the foot; pressing it opens them again |
| `doneLabel` | `string` | `"{n} done"` | the foot line's words ("{n}" the count) |
| `onFeedback` | `(e: FeedbackEvent) => void` |  | called once per move, for your sound or haptics |

Full docs: https://notchset.dev/components/checklist

## Customising
- Colours: every part reads the foundation's roles (`--ns-canvas`, `--ns-ink`, `--ns-line`, `--ns-signal` …), which read your shadcn tokens (`--background`, `--foreground`, `--border`, `--destructive` …), plus the optional `--success` and `--warning`. Retheme on `:root` or any container; never add Tailwind colour classes inside the component.
- Dark mode follows the `.dark` class or `data-theme="dark"` on an ancestor (the shadcn and next-themes conventions).
- Update later: Commit or stash local changes first (or copy the files), so the update can be undone. Read https://notchset.dev/r/changelog.json for the new versions: a major version, an entry marked breaking or a merge says what to change. Then re-run the install with `--overwrite`, on a branch. It replaces the component's files, the shared helper files they import, and the item's CSS rules in the global stylesheet, so review the whole diff (components, shared files, CSS), re-apply your own edits, and run the app's typecheck, tests and build.

## Keyboard

| Keys | Action |
|---|---|
| Tab | each tick, then its Note button |
| Space | tick or untick |
| Enter | save the note being written |
| Escape | drop the note being written |

## Performance

- One row per item; one observer keeps the light on the next row; a day's list of a few dozen rows is its scale.
- A longer list is a list of rows with a Checkbox each.

## Responsive

- phone: the time moves before the title
- desktop
- dark (tokens)
- reduced motion: the tick lands at once

## Motion inventory

| Interaction | What moves |
|---|---|
| the tick draws and fills | the round Checkbox's own tick (ns-tick-draw, --ns-ease-pop). Reduced motion: it lands at once. |
| the light glides on to the next row | translate and height, --ns-time-panel, --ns-ease-move (data-ns-glide). Reduced motion: it lands on the next row at once. |
| the count and All done swap in | ns-play-swap-in, --ns-play-swap, --ns-ease. Reduced motion: the words change at once (data-ns-play). |
| a tick springs the check while the strike draws across | ns-play-spring, --ns-play-spring, --ns-ease. Reduced motion: the check lands at once (data-ns-play). |
| the ring by the count fills to the new share and closes in ok on the last tick | stroke-dashoffset, --ns-time-panel, --ns-ease-move (data-ns-glide). Reduced motion: it lands at the new share at once. |

## Accessibility contract (preserve when editing)
- A section named by its title; each tick is a checkbox named "<item> at <time>: done" or "not done", busy while its change is saved.
- The count is a polite live region.
- Note and Edit note are buttons named with their row; the note field is named "Note on <item>", Enter saves and Escape drops the draft.

## Install

```bash
# npm
npx shadcn@latest add @notchset-pro/checklist
# pnpm
pnpm dlx shadcn@latest add @notchset-pro/checklist
# yarn
yarn dlx shadcn@latest add @notchset-pro/checklist
# bun
bunx --bun shadcn@latest add @notchset-pro/checklist
```

Pro item: needs the `@notchset-pro` registry in `components.json` and `NOTCHSET_TOKEN` in `.env.local` (https://notchset.dev/account). Setup: https://notchset.dev/docs/pro. Every components.json `style` gets the same files.

### Manual

1. Install the packages: `npm install lucide-react@^1`.
2. Copy `components/ui/notchset/checklist.tsx`, `lib/notchset/controllable.ts`, `lib/notchset/feedback.ts`, `lib/notchset/icons.ts`, `lib/notchset/motion.ts` from https://notchset.dev/r/pro/checklist.json, sent with the header `Authorization: Bearer ${NOTCHSET_TOKEN}` (each file's `content`, at its `target`), keeping the `@/` path alias of your tsconfig.
3. Add what it builds on: shadcn `utils` (cn), `notchset-foundation`, `button`, `checkbox`, `icon-button`, `rolling-number`, `text-field`.

## Continue the workflow

- [Checkbox](https://notchset.dev/components/checkbox)
- [Radio group](https://notchset.dev/components/radio-group)
- [Rating](https://notchset.dev/components/rating)

The foundation (the tokens listed above, keyframes and motion levels) installs once with the first component; its CSS is public at https://notchset.dev/r/notchset-foundation.json.
