# Emoji picker (Notchset): prompt.md (v1.1.0)

- id: `emoji-picker` · version 1.1.0 · component · free
- category: Inbox
- build: one set of files for every shadcn style
- install: `npx shadcn@latest add https://notchset.dev/r/emoji-picker.json`
- npm dependencies: lucide-react@^1
- registry dependencies: utils, https://notchset.dev/r/notchset-foundation.json, @notchset/icon-button, @notchset/popover
- docs: https://notchset.dev/components/emoji-picker
- The install command carries everything this item needs (files, CSS, tokens, npm and registry dependencies). Prefer it to copying source by hand.

Any emoji while replying or reacting, in the system's own emoji. It opens with the focus in its search; Frequently used leads, the rail at the foot jumps to a category and follows the scroll, the hovered emoji is named with its shortcode and the hand sets the skin tone. A pick closes it and hands the host where it was..

## 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/emoji-picker.tsx`; shared code: `lib/notchset/glide.ts`, `lib/notchset/icons.ts`, `lib/notchset/motion.ts`.
- Registry dependencies, installed with it automatically: shadcn `utils` (cn), `notchset-foundation`, `icon-button`, `popover`.
- Builds: one set of files, the same for every shadcn style.
- Exports to keep: `EmojiPicker`, `EmojiPanel`, `EMOJI_PICKER_LABELS`, 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-control`, `--ns-ease`, `--ns-ease-move`, `--ns-emoji`, `--ns-emoji-md`, `--ns-emoji-sm`, `--ns-field-edge`, `--ns-hover`, `--ns-icon-sm`, `--ns-ink`, `--ns-ink-3`, `--ns-line-soft`, `--ns-panel`, `--ns-radius-control`, `--ns-radius-sm`, `--ns-raised`, `--ns-selected`, `--ns-signal`, `--ns-text-body`, `--ns-text-input`, `--ns-text-meta`, `--ns-text-small`, `--ns-time-color`, `--ns-time-menu`, `--ns-time-panel`, `--ns-weight-regular`, `--ns-width-sm`.
- 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 { EmojiPicker } from "@/components/ui/notchset/emoji-picker";
```

## Parts
- A single export that takes props.

## Match the original
- Read `components/ui/notchset/emoji-picker.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
- Picking any emoji to insert or react with.

### Not when
- A fixed set of reactions is Reactions; the picker is its Add.

## Built from
- icon-button (`icon-button`), installed with it: reuse it, don't rebuild it
- popover (`popover`), installed with it: reuse it, don't rebuild it
- Glide (shared helper, ships with it)
- Icons (shared helper, ships with it)
- Motion (shared helper, ships with it)

## Mistakes
- Images for emoji: the system's own glyphs read right everywhere
- Tabs of categories first: most picks are typed or recent
- Keeping it open after a pick

## Usage

```tsx
"use client";
import * as React from "react";
import { EmojiPicker } from "@/components/ui/notchset/emoji-picker";

/*
 * The picker open from its face: the search already has the focus, so type "party" and press Enter, or walk the grid
 * with the arrows; the rail at the foot jumps to a section and follows the scroll; the hand sets the skin tone. A pick
 * closes it and the line under it says what was picked; press the face to open it again.
 */
export default function EmojiPickerDemo() {
  const recent = true;
  const knobTone = Number("0");
  return <Picker key={knobTone} recent={recent} startTone={knobTone} />;
}

function Picker({ recent, startTone }: { recent: boolean; startTone: number }) {
  const [tone, setTone] = React.useState(startTone);
  const [picked, setPicked] = React.useState<string[]>([]);
  return (
    <div className="flex h-[468px] w-[320px] max-w-full flex-col items-center gap-2">
      <EmojiPicker defaultOpen align="center" tone={tone} onToneChange={setTone} recent={recent ? undefined : []} onPick={(e) => setPicked((p) => [...p.slice(-5), e])} />
      <p aria-live="polite" className="m-0 mt-auto text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">{picked.length ? `Picked ${picked.join(" ")}` : "Pick an emoji"}</p>
    </div>
  );
}
```

## Props

| Prop | Type | Default | What it does |
|---|---|---|---|
| `onPick` | `(emoji: string, from: DOMRect \| null) => void` |  | a pick: the emoji (with the skin tone) and the box it was picked from, so the host can fly it there |
| `recent` | `string[]` |  | the person's frequently used emoji, most used first (eight show) |
| `tone` | `number` |  | the skin tone, 0 (none) to 5, when the host keeps it (with onToneChange) |
| `onToneChange` | `(tone: number) => void` |  |  |
| `labels` | `EmojiPickerLabels` |  |  |
| `trigger` | `React.ReactElement` |  | what opens it (an icon button with a face, by default) |
| `open` | `boolean` |  | open, when the host holds it (with onOpenChange) |
| `defaultOpen` | `boolean` |  |  |
| `onOpenChange` | `(open: boolean) => void` |  |  |
| `side` | `"top" \| "bottom"` | `"bottom"` |  |
| `align` | `"start" \| "center" \| "end"` | `"start"` |  |

Full docs: https://notchset.dev/components/emoji-picker

## 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 |
|---|---|
| Type | filter |
| ↓ from the search | into the grid |
| ← → ↑ ↓ | walk the grid |
| Enter | pick (in the search: the first match) |
| Esc | close |

## Performance

- About 150 emoji drawn as text, no images or font; filtering is a string match over their names.

## Responsive

- phone: a bottom sheet
- desktop
- dark (tokens)
- reduced motion: opens without growing, the mark lands

## Motion inventory

| Interaction | What moves |
|---|---|
| grows from its trigger, the one pop-out shape | --ns-time-menu, --ns-ease-pop. Reduced motion: a fade. |
| the rail's mark glides to the section in view | transform on --ns-time-panel, --ns-ease-move. Reduced motion: it lands. |
| the skin-tone row fades in where the search field was, and back | ns-fade on --ns-time-menu, --ns-ease (data-ns-moves). Reduced motion: the same fade. |

## Accessibility contract (preserve when editing)
- The search is named and focused on open; each emoji is a button named in words; the arrows walk the grid eight to a row and Up from the top returns to the search; the rail is a named toolbar whose current section is aria-current; the foot's name is said politely.

## Install

```bash
# npm
npx shadcn@latest add https://notchset.dev/r/emoji-picker.json
# pnpm
pnpm dlx shadcn@latest add https://notchset.dev/r/emoji-picker.json
# yarn
yarn dlx shadcn@latest add https://notchset.dev/r/emoji-picker.json
# bun
bunx --bun shadcn@latest add https://notchset.dev/r/emoji-picker.json
```

Or add the `@notchset` registry to components.json and run `npx shadcn@latest add @notchset/emoji-picker`. Every components.json style gets the same files.

### Manual

1. Install the packages: `npm install lucide-react@^1`.
2. Copy `components/ui/notchset/emoji-picker.tsx`, `lib/notchset/glide.ts`, `lib/notchset/icons.ts`, `lib/notchset/motion.ts` from https://notchset.dev/r/emoji-picker.json (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`, `icon-button`, `popover`.

## Continue the workflow

- [Reactions](https://notchset.dev/components/reactions)

## Source

### components/ui/notchset/emoji-picker.tsx

```tsx
// Notchset emoji-picker 1.1.0 · https://notchset.dev/changelog
"use client";
import * as React from "react";
import { Search, Smile } from "@/lib/notchset/icons";
import { cn } from "@/lib/utils";
import { useGlide, glideMark } from "@/lib/notchset/glide";
import { IconButton } from "@/components/ui/notchset/icon-button";
import { Popover } from "@/components/ui/notchset/popover";

/*
 * Emoji picker: any emoji while replying or reacting. It opens with focus in its search; typing filters the grid in
 * place; Frequently used leads, then the categories, and the rail at the foot scrolls to a section. The emoji under
 * the pointer or keys is named at the foot with its :shortcode:. Arrows walk the grid, Enter picks, Esc closes. The
 * hand control sets the skin tone. A pick closes it and hands the host the emoji and where it was (Reactions flies it).
 *
 *   <EmojiPicker onPick={(e) => insert(e)} />
 */
type Emoji = { e: string; n: string; tone?: boolean | undefined };
const raw: [string, string][] = [
  ["Smileys and people", "😀 grinning·😄 smile·😁 grin·😅 sweat smile·😂 joy·🙂 slight smile·😉 wink·😊 blush·😍 heart eyes·🥳 partying·😎 sunglasses·🤔 thinking·😮 open mouth·😴 sleeping·😬 grimacing·🙃 upside down·😇 innocent·🥲 smiling tear·😭 sob·😤 triumph·🙏 pray*·👍 thumbs up*·👎 thumbs down*·👏 clap*·🙌 raised hands*·💪 muscle*·👋 wave*·✌️ victory*·👌 ok hand*·🤝 handshake·👀 eyes·🧠 brain"],
  ["Animals and nature", "🐶 dog·🐱 cat·🦊 fox·🐻 bear·🐼 panda·🦁 lion·🐸 frog·🐵 monkey·🦉 owl·🐝 bee·🦋 butterfly·🐢 turtle·🐙 octopus·🌱 seedling·🌵 cactus·🌸 blossom·🌻 sunflower·🍀 four leaf clover·🌈 rainbow·☀️ sunny·🌙 moon"],
  ["Food and drink", "🍕 pizza·🍔 burger·🌮 taco·🍣 sushi·🍜 ramen·🥗 salad·🍩 doughnut·🍪 cookie·🎂 birthday cake·🍎 apple·🍋 lemon·🥑 avocado·☕ coffee·🍵 tea·🍺 beer·🥂 cheers"],
  ["Sport and play", "⚽ soccer·🏀 basketball·🎾 tennis·🏃 runner*·🚴 cyclist*·🧘 yoga*·🎯 dart·🎮 video game·🎲 dice·🎸 guitar·🎨 art·🏆 trophy·🥇 first place·🎉 tada·🎊 confetti ball·🎁 gift"],
  ["Travel and places", "🚀 rocket·✈️ airplane·🚗 car·🚲 bike·🚢 ship·🏠 house·🏢 office·🏖️ beach·🏔️ mountain·🗺️ map·🧭 compass·⛺ tent·🌍 earth"],
  ["Objects", "💡 bulb·🔥 fire·✨ sparkles·⚡ zap·💻 laptop·📱 phone·📎 paperclip·📌 pushpin·📅 calendar·📈 chart up·📉 chart down·📝 memo·🔒 lock·🔑 key·🔔 bell·🧪 test tube·🛠️ tools·⏰ alarm clock"],
  ["Symbols", "❤️ heart·🧡 orange heart·💛 yellow heart·💚 green heart·💙 blue heart·💜 purple heart·✅ check·❌ x·⚠️ warning·❓ question·❗ exclamation·💯 hundred·➕ plus·🔁 repeat·⭐ star·🆕 new"],
  ["Flags", "🏁 checkered flag·🚩 triangular flag·🏳️ white flag·🏴 black flag·🇬🇧 uk·🇺🇸 us·🇫🇷 france·🇩🇪 germany·🇯🇵 japan·🇮🇳 india·🇧🇷 brazil·🇪🇸 spain"],
];
const SECTIONS = raw.map(([name, list]) => ({
  name,
  emoji: list.split("·").map((x): Emoji => {
    const at = x.indexOf(" ");
    const n = x.slice(at + 1);
    return { e: x.slice(0, at), n: n.replace("*", ""), tone: n.endsWith("*") };
  }),
}));
const RAIL = ["🕘", "😀", "🐶", "🍕", "⚽", "🚀", "💡", "❤️", "🏁"];
const TONES = ["", "\u{1F3FB}", "\u{1F3FC}", "\u{1F3FD}", "\u{1F3FE}", "\u{1F3FF}"];
const TONE_HAND = ["✋", "✋\u{1F3FB}", "✋\u{1F3FC}", "✋\u{1F3FD}", "✋\u{1F3FE}", "✋\u{1F3FF}"];
const ALL = SECTIONS.flatMap((s) => s.emoji);
const named = (e: string) => ALL.find((x) => x.e === e) ?? { e, n: "" };
/** The emoji with a skin tone, for one that takes it (the tone sits after the first character, before a variation). */
const toned = (x: Emoji, tone: number) => (x.tone && tone ? x.e.replace("️", "") + TONES[tone] : x.e);
const code = (n: string) => `:${n.replace(/\s+/g, "_")}:`;

const EMOJI_PICKER_LABELS = { trigger: "Add an emoji", search: "Search emoji", recent: "Frequently used", tone: "Skin tone", none: "No emoji match", rail: "Emoji categories" };
type EmojiPickerLabels = Partial<typeof EMOJI_PICKER_LABELS>;

type EmojiPanelProps = {
  /** a pick: the emoji (with the skin tone) and the box it was picked from, so the host can fly it there */
  onPick: (emoji: string, from: DOMRect | null) => void;
  /** the person's frequently used emoji, most used first (eight show) */
  recent?: string[] | undefined;
  /** the skin tone, 0 (none) to 5, when the host keeps it (with onToneChange) */
  tone?: number | undefined;
  onToneChange?: ((tone: number) => void) | undefined;
  labels?: EmojiPickerLabels | undefined;
  className?: string | undefined;
};

/** The picker's panel on its own, for a host that places it (a composer's tray). */
function EmojiPanel({ onPick, recent = ["👍", "🎉", "✅", "👀", "🔥", "🙏", "❤️", "🚀"], tone: toneProp, onToneChange, labels, className }: EmojiPanelProps) {
  const L = { ...EMOJI_PICKER_LABELS, ...labels };
  const [query, setQuery] = React.useState("");
  const [ownTone, setOwnTone] = React.useState(0);
  const tone = toneProp ?? ownTone;
  const [hover, setHover] = React.useState<Emoji | null>(null);
  const [inView, setInView] = React.useState(0);
  const [toning, setToning] = React.useState(false);
  const scroller = React.useRef<HTMLDivElement>(null);
  const rail = React.useRef<HTMLDivElement>(null);
  const field = React.useRef<HTMLInputElement>(null);
  const q = query.trim().toLowerCase();
  const sections = q
    ? [{ name: "", emoji: ALL.filter((x) => x.n.includes(q) || code(x.n).includes(q)) }]
    : [{ name: L.recent, emoji: recent.slice(0, 8).map(named) }, ...SECTIONS];
  useGlide(rail, (b) => b.querySelector<HTMLElement>(`[data-rail="${inView}"]`), [inView, q]);
  React.useEffect(() => field.current?.focus({ preventScroll: true }), []);
  const onScroll = () => {
    const s = scroller.current;
    if (!s || q) return;
    const heads = [...s.querySelectorAll<HTMLElement>("[data-section]")];
    let at = 0;
    heads.forEach((h, i) => h.offsetTop - s.offsetTop <= s.scrollTop + 8 && (at = i));
    setInView(at);
  };
  const jump = (i: number) => {
    const s = scroller.current, h = s?.querySelectorAll<HTMLElement>("[data-section]")[i];
    if (s && h) s.scrollTo({ top: h.offsetTop - s.offsetTop, behavior: "smooth" });
    setInView(i);
  };
  const cells = () => [...(scroller.current?.querySelectorAll<HTMLElement>("[data-emoji]") ?? [])];
  /* the arrows walk the grid eight to a row; Up from the first row goes back to the search */
  const walk = (e: React.KeyboardEvent<HTMLElement>) => {
    const all = cells(), i = all.indexOf(e.target as HTMLElement);
    const step = { ArrowRight: 1, ArrowLeft: -1, ArrowDown: 8, ArrowUp: -8 }[e.key];
    if (step == null || i < 0) return;
    e.preventDefault();
    if (i + step < 0) return field.current?.focus();
    all[Math.max(0, Math.min(all.length - 1, i + step))]?.focus();
  };
  const pick = (x: Emoji, el: HTMLElement | null) => onPick(toned(x, tone), el?.getBoundingClientRect() ?? null);
  const shown = hover ?? sections.find((s) => s.emoji.length)?.emoji[0] ?? null;
  return (
    <div data-slot="emoji-picker" className={cn("flex w-[var(--ns-width-sm)] max-w-full flex-col", className)}>
      <div className="flex items-center gap-1.5 p-2 pb-1.5">
        {toning ? (
          <span role="group" aria-label={L.tone} data-ns-moves="" className="flex h-[var(--ns-control)] min-w-0 flex-1 items-center justify-between animate-[ns-fade_var(--ns-time-menu)_var(--ns-ease)]">
            {TONE_HAND.map((h, i) => (
              <button key={i} type="button" aria-pressed={i === tone} aria-label={`${L.tone} ${i || "default"}`} onClick={() => (onToneChange ? onToneChange(i) : setOwnTone(i), setToning(false), requestAnimationFrame(() => field.current?.focus()))} className={cn("grid size-8 cursor-pointer place-items-center rounded-[var(--ns-radius-sm)] text-[length:var(--ns-emoji-md)] outline-hidden hover:bg-[var(--ns-hover)] focus-visible:outline-2 focus-visible:outline-[var(--ns-signal)]", i === tone && "bg-[var(--ns-selected)]")}>
                {h}
              </button>
            ))}
          </span>
        ) : (
        <label className="flex h-[var(--ns-control)] min-w-0 flex-1 items-center gap-2 rounded-[var(--ns-radius-control)] bg-[var(--ns-panel)] px-2.5 shadow-[inset_0_0_0_1px_var(--ns-field-edge)] focus-within:shadow-[inset_0_0_0_1px_var(--ns-signal),0_0_0_3px_color-mix(in_oklab,var(--ns-signal)_18%,transparent)] [transition:box-shadow_var(--ns-time-color)]">
          <Search aria-hidden className="size-[var(--ns-icon-sm)] shrink-0 text-[var(--ns-ink-3)]" />
          <input
            ref={field}
            type="search"
            value={query}
            aria-label={L.search}
            placeholder={L.search}
            onChange={(e) => (setQuery(e.target.value), setHover(null))}
            onKeyDown={(e) => {
              if (e.key === "ArrowDown") (e.preventDefault(), cells()[0]?.focus());
              if (e.key === "Enter" && q) {
                e.preventDefault();
                const first = cells()[0];
                const x = sections[0]?.emoji[0];
                if (x) pick(x, first ?? null);
              }
            }}
            className="h-full min-w-0 flex-1 bg-transparent text-[length:var(--ns-text-body)] text-[var(--ns-ink)] outline-hidden pointer-coarse:text-[length:var(--ns-text-input)] placeholder:text-[var(--ns-ink-3)] [&::-webkit-search-cancel-button]:hidden"
          />
        </label>
        )}
        <span className="relative">
          <IconButton label={L.tone} intent="ghost" aria-expanded={toning} onClick={() => setToning((t) => !t)}>
            <span aria-hidden className="text-[length:var(--ns-emoji-md)] leading-none">{TONE_HAND[tone]}</span>
          </IconButton>
        </span>
      </div>
      <div ref={scroller} onScroll={onScroll} onKeyDown={walk} className="relative h-58 overflow-y-auto overscroll-contain px-2 [scrollbar-width:thin]">
        {sections.map((s, si) => (
          <section key={s.name || "found"} data-section={si} aria-label={s.name || L.search}>
            {s.name && <h4 className="sticky top-0 z-[1] m-0 bg-[var(--ns-raised)] px-1 pt-1.5 pb-1 text-[length:var(--ns-text-meta)] font-[number:var(--ns-weight-regular)] text-[var(--ns-ink-3)]">{s.name}</h4>}
            <div className="grid grid-cols-8">
              {s.emoji.map((x) => (
                <button
                  key={x.e}
                  type="button"
                  data-emoji=""
                  aria-label={x.n}
                  onPointerEnter={() => setHover(x)}
                  onFocus={() => setHover(x)}
                  onClick={(e) => pick(x, e.currentTarget)}
                  className="grid aspect-square cursor-pointer place-items-center rounded-[var(--ns-radius-sm)] text-[length:var(--ns-emoji)] leading-none outline-hidden [transition:background-color_var(--ns-time-color)] hover:bg-[var(--ns-hover)] focus-visible:bg-[var(--ns-hover)] focus-visible:shadow-[inset_0_0_0_2px_var(--ns-signal)]"
                >
                  {toned(x, tone)}
                </button>
              ))}
            </div>
          </section>
        ))}
        {q && !sections[0]!.emoji.length && <p className="m-0 px-1 py-6 text-center text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">{L.none}</p>}
      </div>
      <div className="mx-2 border-t border-[var(--ns-line-soft)]">
        <div ref={rail} role="toolbar" aria-label={L.rail} className={cn("relative flex justify-between py-1", q && "opacity-40")}>
          <span data-glide="" aria-hidden data-ns-glide="" className={cn(glideMark, "rounded-[var(--ns-radius-sm)] bg-[var(--ns-selected)]")} />
          {RAIL.map((r, i) => (
            <button key={r} type="button" data-rail={i} aria-label={i === 0 ? L.recent : SECTIONS[i - 1]!.name} aria-current={i === inView || undefined} disabled={!!q} onClick={() => jump(i)} className={cn("relative grid size-8 cursor-pointer place-items-center rounded-[var(--ns-radius-sm)] text-[length:var(--ns-emoji-sm)] leading-none outline-hidden grayscale-[0.9] [transition:filter_var(--ns-time-color),opacity_var(--ns-time-color)] hover:grayscale-0 focus-visible:outline-2 focus-visible:outline-[var(--ns-signal)] disabled:cursor-default", i === inView ? "grayscale-0" : "opacity-60")}>
              {r}
            </button>
          ))}
        </div>
      </div>
      <p aria-live="polite" className="m-0 flex h-9 items-center gap-2 px-3 text-[length:var(--ns-text-small)] text-[var(--ns-ink)]">
        {shown && (
          <>
            <span aria-hidden className="text-[length:var(--ns-emoji-md)] leading-none">{toned(shown, tone)}</span>
            <span className="min-w-0 flex-1 truncate">{shown.n}</span>
            <span className="text-[length:var(--ns-text-meta)] text-[var(--ns-ink-3)]">{code(shown.n)}</span>
          </>
        )}
      </p>
    </div>
  );
}

type EmojiPickerProps = Omit<EmojiPanelProps, "className"> & {
  /** what opens it (an icon button with a face, by default) */
  trigger?: React.ReactElement | undefined;
  /** open, when the host holds it (with onOpenChange) */
  open?: boolean | undefined;
  defaultOpen?: boolean | undefined;
  onOpenChange?: ((open: boolean) => void) | undefined;
  side?: "top" | "bottom" | undefined;
  align?: "start" | "center" | "end" | undefined;
};

/** The picker from its trigger: it grows from the trigger as the one pop-out shape, and a pick closes it. */
function EmojiPicker({ trigger, open: openProp, defaultOpen, onOpenChange, side = "bottom", align = "start", onPick, labels, ...panel }: EmojiPickerProps) {
  const [own, setOwn] = React.useState(!!defaultOpen);
  const open = openProp ?? own;
  const set = (o: boolean) => (openProp === undefined && setOwn(o), onOpenChange?.(o));
  const L = { ...EMOJI_PICKER_LABELS, ...labels };
  return (
    <Popover
      open={open}
      onOpenChange={set}
      side={side}
      align={align}
      className="p-0"
      trigger={trigger ?? (
        <IconButton label={L.trigger} intent="secondary">
          <Smile />
        </IconButton>
      )}
    >
      {open && <EmojiPanel {...panel} labels={labels} onPick={(e, from) => (onPick(e, from), set(false))} />}
    </Popover>
  );
}

export { EmojiPicker, EmojiPanel, EMOJI_PICKER_LABELS, type EmojiPickerProps, type EmojiPanelProps, type EmojiPickerLabels };
```

### lib/notchset/glide.ts

```tsx
// Notchset emoji-picker 1.1.0 · https://notchset.dev/changelog
"use client";
import * as React from "react";
import { EASE, lessMotion, roleTiming } from "@/lib/notchset/motion";

/* layout effects run as plain effects on the server, so React 18 server rendering stays silent */
const useIsomorphicLayoutEffect = typeof window === "undefined" ? React.useEffect : React.useLayoutEffect;

/*
 * The one moving mark a region has (the tab bar's pill, the sidebar's current page, the chosen tab): one element inside
 * `box`, marked `data-glide`, placed over the element `target` finds and moved to the next on `--ns-ease-move`. Its first
 * place is set without a move; it hides while nothing is current. `data-ns-glide` lands it at once with less motion.
 */
type Find = (box: HTMLElement) => HTMLElement | null | undefined;

/** Puts the mark on what `find` returns; `still` (or a first placing) lands it without a move. True once placed. */
function placeGlide(el: HTMLElement | null, find: Find, still: boolean, placed: boolean): boolean {
  const ind = el?.querySelector<HTMLElement>(":scope > [data-glide]");
  if (!el || !ind) return placed;
  const t = find(el);
  if (!t || t.getBoundingClientRect().height < 4) {
    ind.style.opacity = "0";
    return false;
  }
  const b = el.getBoundingClientRect(), r = t.getBoundingClientRect();
  /* boxes are measured on screen, the mark is placed in the box's own space: under a CSS zoom the two differ by it */
  const z = b.width > 0 && el.offsetWidth > 0 ? el.offsetWidth / b.width : 1;
  const x = (r.left - b.left) * z + el.scrollLeft - el.clientLeft, y = (r.top - b.top) * z + el.scrollTop - el.clientTop;
  const first = still || !placed;
  if (first) ind.style.transition = "none";
  ind.style.transform = `translate(${x}px, ${y}px)`;
  ind.style.width = `${r.width * z}px`;
  ind.style.height = `${r.height * z}px`;
  ind.style.opacity = "1";
  if (first) {
    void ind.offsetWidth;
    ind.style.transition = "";
  }
  return true;
}

export function useGlide(box: React.RefObject<HTMLElement | null>, target: Find, deps: React.DependencyList) {
  const placed = React.useRef(false);
  const find = React.useRef(target);
  useIsomorphicLayoutEffect(() => {
    find.current = target;
  });
  useIsomorphicLayoutEffect(() => {
    placed.current = placeGlide(box.current, find.current, false, placed.current);
  }, deps);
  React.useEffect(() => {
    const el = box.current;
    if (!el || typeof ResizeObserver === "undefined") return;
    const ro = new ResizeObserver(() => (placed.current = placeGlide(el, find.current, true, placed.current)));
    ro.observe(el);
    const watch = () => {
      for (const c of Array.from(el.children)) if (!c.hasAttribute("data-glide")) ro.observe(c);
    };
    watch();
    const again = () => (placed.current = placeGlide(el, find.current, false, placed.current));
    el.addEventListener("transitionend", again);
    const mo = typeof MutationObserver === "undefined" ? null : new MutationObserver(() => {
      watch();
      again();
    });
    mo?.observe(el, { childList: true });
    return () => {
      ro.disconnect();
      mo?.disconnect();
      el.removeEventListener("transitionend", again);
    };
  }, [box]);
}

/** The indicator's own classes: absolutely placed at the box's origin, moving on the shared move curve. */
export const glideMark =
  "pointer-events-none absolute top-0 left-0 [transition:transform_var(--ns-time-panel)_var(--ns-ease-move),width_var(--ns-time-panel)_var(--ns-ease-move),height_var(--ns-time-panel)_var(--ns-ease-move),opacity_var(--ns-time-color)]";

/** A sort's glide: each row 240ms on the move curve, 12ms later than the row above it (by its new place), the
    stagger capped at 160ms. A row caught mid-glide carries on at once, from where it is seen. */
export const SORT_GLIDE = { time: 240, stagger: 12, cap: 160 } as const;

/* how far a row's running glide has it from its place now (0 at rest), read before its glide is cancelled */
function inFlight(r: HTMLElement): [number, number] | null {
  const runs = r.getAnimations?.() ?? [];
  if (!runs.length && !r.style.transform) return null;
  const t = getComputedStyle(r).transform;
  runs.forEach((a) => a.cancel());
  r.style.transform = "";
  if (!t || t === "none" || typeof DOMMatrixReadOnly === "undefined") return null;
  const m = new DOMMatrixReadOnly(t);
  return Math.abs(m.m41) < 0.5 && Math.abs(m.m42) < 0.5 ? null : [m.m41, m.m42];
}

/**
 * Rows that move glide there (FLIP, on the move curve): a new sort (`sortKey` changes) glides every row from where it
 * is seen to where it lands, 12ms apart by its new place (SORT_GLIDE), and rows taken away (a delete, a bulk move, a
 * chip or a file removed) close the gap rather than jumping. A second sort mid-glide carries each row on from where
 * it is on screen, with no stagger for a row already moving. Each row is an element under `box` matching `rows` with
 * a `data-row` id; less motion lands them at once. A row holding the focus keeps it. Only a removal or a sort moves
 * anything: a row arriving lands where it is, and so does a list shown another way (`view` changes). With `joins`, a
 * set that loses or takes rows, both in the same change too (an archive the next rows refill, an Undo), glides the
 * rows that stay from where they were last seen; the new ones land where they are.
 */
export function useRowGlide(box: React.RefObject<HTMLElement | null>, rows: string, order: string, sortKey = "", view = "", joins = false) {
  const places = React.useRef(new Map<string, readonly [number, number]>());
  const lastSort = React.useRef(sortKey);
  const lastView = React.useRef(view);
  useIsomorphicLayoutEffect(() => {
    const b = box.current;
    /* the box is gone (the list emptied): forget the places, so the next list never glides from stale ones */
    if (!b) return void places.current.clear();
    const els = [...b.querySelectorAll<HTMLElement>(rows)];
    const was = places.current;
    const sorted = lastSort.current !== sortKey;
    lastSort.current = sortKey;
    /* only rows left, none new: the list closed a gap */
    const viewed = lastView.current !== view;
    lastView.current = view;
    const closed = !sorted && !viewed && (joins ? els.some((r) => was.has(r.dataset.row!)) && (els.length !== was.size || els.some((r) => !was.has(r.dataset.row!))) : els.length < was.size && els.every((r) => was.has(r.dataset.row!)));
    const still = lessMotion(b);
    const next = new Map<string, readonly [number, number]>();
    els.forEach((r, i) => {
      /* where it sits in its list, not on screen: a scroll between two renders moves nothing */
      const at = [r.offsetLeft, r.offsetTop] as const;
      next.set(r.dataset.row!, at);
      const from = was.get(r.dataset.row!);
      if (!(sorted || closed) || from === undefined) return;
      /* seen = its old place plus how far along its glide it still was */
      const flying = inFlight(r);
      const dx = from[0] + (flying?.[0] ?? 0) - at[0], dy = from[1] + (flying?.[1] ?? 0) - at[1];
      if (still || (Math.abs(dx) < 1 && Math.abs(dy) < 1)) return;
      const go = dx ? `translate(${dx}px, ${dy}px)` : `translateY(${dy}px)`;
      const timing: KeyframeAnimationOptions = sorted
        ? { duration: SORT_GLIDE.time, delay: flying ? 0 : Math.min(i * SORT_GLIDE.stagger, SORT_GLIDE.cap), easing: EASE.move, fill: "backwards" }
        : { ...roleTiming(r, "--ns-time-panel"), easing: EASE.move };
      r.animate?.([{ transform: go }, { transform: "none" }], timing);
    });
    places.current = next;
  }, [box, rows, order, sortKey, view, joins]);
}
```

### lib/notchset/icons.ts

```tsx
// Notchset emoji-picker 1.1.0 · https://notchset.dev/changelog
/** Every piece imports its icons from here: swap the icon set in this one file. */
export * from "lucide-react";
```

### lib/notchset/motion.ts

```tsx
// Notchset emoji-picker 1.1.0 · https://notchset.dev/changelog
"use client";
/*
 * Less motion, the one switch every piece reads, and a motion role's timing for a Web Animation. Split from
 * physics.ts so a piece that needs only these does not carry the springs.
 */
import * as React from "react";

/**
 * Less motion where `el` sits: the device's setting, then a data-motion="reduced" on `el` or any ancestor, falling
 * back to <html>'s when there is no element. The one copy: every piece reads this.
 */
const REDUCED = '[data-motion="reduced"],[data-motion="off"]';
export function lessMotion(el?: Element | null): boolean {
  if (typeof document === "undefined") return true;
  if (typeof matchMedia !== "undefined" && matchMedia("(prefers-reduced-motion: reduce)").matches) return true;
  return !!(el?.closest?.(REDUCED) ?? document.documentElement.matches(REDUCED));
}

/** Less motion, kept current as the setting changes; true on a server, so a piece starts in its still. */
export function useLessMotion(): boolean {
  return React.useSyncExternalStore(
    (f) => {
      if (typeof matchMedia === "undefined") return () => {};
      const q = matchMedia("(prefers-reduced-motion: reduce)");
      q.addEventListener("change", f);
      const mo = typeof MutationObserver === "undefined" ? null : new MutationObserver(f);
      mo?.observe(document.documentElement, { attributes: true, attributeFilter: ["data-motion"] });
      return () => {
        q.removeEventListener("change", f);
        mo?.disconnect();
      };
    },
    () => lessMotion(),
    () => true,
  );
}

/** A motion role's duration and curve (0 under less motion: the result at once), read from the foundation where `el` sits, for a Web Animation that glides
    something CSS can't transition (a width to `auto`, a node on its way out): `roleTiming(el, "--ns-time-menu")`. */
export function roleTiming(el: Element, time: string, ease = "--ns-ease"): KeyframeAnimationOptions {
  if (lessMotion(el)) return { duration: 0, easing: "linear" };
  const cs = getComputedStyle(el);
  const t = cs.getPropertyValue(time).trim();
  const ms = t.endsWith("ms") ? parseFloat(t) : parseFloat(t) * 1000;
  return { duration: Number.isFinite(ms) ? ms : 0, easing: cs.getPropertyValue(ease).trim() || "linear" };
}

/** The foundation's curves as literal strings, for a Web Animation (`element.animate`, `KeyframeEffect`,
    `updateTiming`): those take a literal easing and throw on a CSS var. Copied from foundation.css's `--ns-ease-*`;
    CSS transitions and keyframes keep the vars. */
export const EASE = {
  enter: "cubic-bezier(0.22, 1, 0.36, 1)",
  move: "cubic-bezier(.5, 0, .2, 1)",
  exit: "cubic-bezier(.6, 0, .9, .5)",
  panel: "cubic-bezier(0.32, 0.72, 0, 1)",
  press: "cubic-bezier(0.2, 0, 0, 1)",
  spring: "cubic-bezier(0.16, 1, 0.3, 1)",
  arrive: "cubic-bezier(.3, 1.22, .5, 1)",
  breathe: "cubic-bezier(.45, 0, .55, 1)",
} as const;
```

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.
