# Tailgrids v3 → v3.1 migration: agent prompt

You are migrating a project that uses Tailgrids Core components (copied into the project's source) from v3 to v3.1. v3.1 replaces the ~320 component-specific color tokens with ~31 shadcn-style semantic tokens (light values under `:root`, dark values under `.dark`) and reworks every component to the shadcn React Aria structure and API. This prompt is self-contained: the full mapping is below.

## Workflow

1. Make sure the project is committed to git, then run `npx @tailgrids/cli@latest migrate --dry-run` and read the plan. Run `npx @tailgrids/cli@latest migrate` without `--dry-run` (the user normally already did). It handles the theme stylesheet (`tailgrids.css`) and the temporary compatibility stylesheet (`tailgrids-v3.0-compat.css`) itself, so do not add or edit them by hand, and writes `tailgrids-migrate-report.md` in the project root.
2. Read `tailgrids-migrate-report.md`. Its sections are the work list; the rules and mapping you need are below.
3. Resolve every entry under **Unresolved cases** in the report, file by file, using the tables below. Each line is `file:line  message`. Prefer the smallest edit; do not restyle anything the mapping does not mention.
4. Visit every entry under **Needs visual review**: the codemod applied a derived value (not a 1:1 Figma token). Check the result against the surrounding design in both light and dark mode, adjust with the semantic token / tint listed in the table if needed, and leave it otherwise.
5. **Project tokens left unchanged** lists custom properties the project defined itself. `migrate` never rewrites them. Only if the user asks, map them onto the v3.1 semantic tokens; otherwise leave them.
6. Handle the caveats in the _Not rewritten by `migrate`_ section even when the report does not list them: `migrate` cannot see all of them (e.g. default imports, raw `<button>` children, tabs layout).
7. Renames and removals: the Core component Toggle is now Switch (`migrate` renames the file and call sites). Modal and Overlay no longer exist: move their usages to Dialog by hand.
8. Re-run `npx @tailgrids/cli@latest migrate --dry-run`: it must report no diff and no unresolved cases that you have not deliberately kept. Then run the project's type-check, lint and tests, and look at the pages in the browser in both modes. `.bak` files next to changed stylesheets are backups of the originals; leave them for the user to delete.

## Rules

- Never invent tokens. Only the semantic tokens in the mapping exist: `background`, `foreground` (body text), `title` (headings and other strong text), `card`, `popover`, `primary`, `secondary`, `muted`, `accent`, `destructive`, `success`, `warning`, `info` (each with a `-foreground` pair), `border`, `input`, `ring`. Everything else comes from the Tailwind default palette.
- `-foreground` always means text/icon on a **solid fill** of that color. Text on a tinted surface uses the main color (`text-destructive` on `bg-destructive/10`).
- Headings use `text-title`; body text uses `text-foreground`. Components copied from the shadcn ecosystem use `text-foreground` for headings: change those to `text-title` where they are titles.
- Dark mode is the `.dark` class, not a separate stylesheet. Do not add `dark:` variants that a semantic token already covers.
- Keep React Aria behavior props (`onPress`, `isDisabled`, `isInvalid`, `isRequired`, `isReadOnly`); the DOM-style `onClick`/`disabled`/`invalid`/`required`/`readOnly` equivalents are removed.
- Customized component copies: re-add the component with `npx @tailgrids/cli@latest add <name> --overwrite` and port the customization onto the new source instead of patching the old structure. Call sites of a customised copy are left at the v3.0 API on purpose: update them once the copy is ported.

## How the token mapping works

- `{p}`: the utility prefix of the matched class (bg, text, border, ring, fill, stroke, divide, …)
- `{v}`: the variant chain of the matched class (e.g. `disabled`, `data-disabled`, `peer-disabled`)
- Variants: Variant chains (`hover:`, `focus:`, `data-[x]:`, `[&>svg]:`) in front of an old class are re-emitted in front of EVERY class the `to` template produces; a `dark:` in the template is appended after them (`hover:dark:bg-…`).
- Opacity: `opacitySuffix: carries` rows keep a trailing `/N` (e.g. `bg-error-500/10`→`bg-destructive/10`). Rows whose `to` already contains an opacity or a `dark:` pair are `manual-if-present`: the codemod reports a trailing `/N` instead of rewriting.
- `auto`: Codemod rewrites with no review required.
- `auto-review`: Codemod rewrites and lists the site in the report for a visual check (value is a derivation, not a 1:1 Figma token).
- `manual`: Codemod only reports; the agent prompt resolves it.
- Context overrides: Keyed by the component file name (registry name) the class appears in; overrides `to` (whole class) per utility prefix; `*` = every utility. Copies in consumer projects are matched by file name.

## Token mapping (old class → new class)

The class is `{prefix}-{old}` (e.g. `bg-button-primary-background`); apply the replacement with the same prefix and variant chain. `manual` rows have no mechanical replacement: read the reason and decide from context.

| Old token                                 | Replacement                                                  | Context overrides                                                                                                                                                                                                                                                                                                                                                                                                       | Automation  | Notes                                                                                                                                                                              |
| ----------------------------------------- | ------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `alert-danger-background`                 | `{p}-destructive/10 dark:{p}-destructive/15`                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Alert surface = tint.                                                                                                                                                              |
| `alert-danger-border`                     | `{p}-destructive/30`                                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Alert border = tint (old tone-200 border).                                                                                                                                         |
| `alert-danger-icon-background`            | `{p}-destructive`                                            |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Indicator fill (text on it: `destructive-foreground`).                                                                                                                             |
| `alert-danger-title`                      | `{p}-destructive`                                            |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Title color = main color (tint rule).                                                                                                                                              |
| `alert-default-background`                | `{p}-muted/50`                                               |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review |                                                                                                                                                                                    |
| `alert-default-border`                    | `{p}-border`                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `alert-default-icon-background`           | `{p}-muted-foreground`                                       |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `alert-default-title`                     | `{p}-title`                                                  |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `alert-info-background`                   | `{p}-info/10 dark:{p}-info/15`                               |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Alert surface = tint.                                                                                                                                                              |
| `alert-info-border`                       | `{p}-info/30`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Alert border = tint (old tone-200 border).                                                                                                                                         |
| `alert-info-icon-background`              | `{p}-info`                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Indicator fill (text on it: `info-foreground`).                                                                                                                                    |
| `alert-info-title`                        | `{p}-info`                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Title color = main color (tint rule).                                                                                                                                              |
| `alert-success-background`                | `{p}-success/10 dark:{p}-success/15`                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Alert surface = tint.                                                                                                                                                              |
| `alert-success-border`                    | `{p}-success/30`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Alert border = tint (old tone-200 border).                                                                                                                                         |
| `alert-success-icon-background`           | `{p}-success`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Indicator fill (text on it: `success-foreground`).                                                                                                                                 |
| `alert-success-title`                     | `{p}-success`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Title color = main color (tint rule).                                                                                                                                              |
| `alert-warning-background`                | `{p}-warning/10 dark:{p}-warning/15`                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Alert surface = tint.                                                                                                                                                              |
| `alert-warning-border`                    | `{p}-warning/30`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Alert border = tint (old tone-200 border).                                                                                                                                         |
| `alert-warning-icon-background`           | `{p}-warning`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Indicator fill (text on it: `warning-foreground`).                                                                                                                                 |
| `alert-warning-title`                     | `{p}-warning`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Title color = main color (tint rule).                                                                                                                                              |
| `background-100`                          | `{p}-background`                                             | alert-dialog: `bg-popover`, `fill-popover`; dialog: `bg-popover`, `fill-popover`; popover: `bg-popover`, `fill-popover`; sheet: `bg-popover`, `fill-popover`; drawer: `bg-popover`, `fill-popover`; tooltip: `bg-popover`, `fill-popover`; toast: `bg-popover`, `fill-popover`; calendar: `bg-popover`, `fill-popover`; range-calendar: `bg-popover`, `fill-popover`; sidebar: `bg-sidebar`; accordion: `bg-background` | auto-review | Default page-level surface → `background`; floating surfaces → `popover`; sidebar → `sidebar` (ticket 13).                                                                         |
| `background-50`                           | `{p}-background`                                             | calendar: `bg-popover`; range-calendar: `bg-popover`; command: `bg-popover`; hover-card: `bg-popover`; menubar: `bg-popover`; time-picker: `bg-popover`                                                                                                                                                                                                                                                                 | auto-review | Same role as background-100 (old light/dark values differ slightly). Floating surfaces → `popover`; avatar ring → `ring-background`.                                               |
| `background-soft-100`                     | `{p}-muted`                                                  | command: `bg-accent`; pagination: `bg-accent`; scroll-area: `bg-muted`                                                                                                                                                                                                                                                                                                                                                  | auto        | Light gray surface (#f3f4f6) → `muted`. Hover/active on interactive items → `accent`.                                                                                              |
| `background-soft-200`                     | `{p}-accent`                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Hover/focus/selected highlight → `accent`.                                                                                                                                         |
| `background-soft-50`                      | `{p}-muted/50`                                               |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Very light gray surface (#f9fafb): tint of `muted` (gray-100 at 50%).                                                                                                              |
| `background-soft-500`                     | `{p}-border`                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Scrollbar thumb / OTP separator (#d1d5db) → `border` (gray-200); may need `input` (gray-300) if too faint.                                                                         |
| `badge-blue-background`                   | `{p}-blue-50 dark:{p}-blue-500/15`                           |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Decorative color: Tailwind palette in component (spec).                                                                                                                            |
| `badge-blue-icon-color`                   | `{p}-blue-500 dark:{p}-blue-400`                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-blue-text`                         | `{p}-blue-700 dark:{p}-blue-400`                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Old light text = palette 700-class; dark = 400-class.                                                                                                                              |
| `badge-cyan-background`                   | `{p}-cyan-50 dark:{p}-cyan-500/15`                           |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Decorative color: Tailwind palette in component (spec).                                                                                                                            |
| `badge-cyan-icon-color`                   | `{p}-cyan-500 dark:{p}-cyan-400`                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-cyan-text`                         | `{p}-cyan-700 dark:{p}-cyan-400`                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Old light text = palette 700-class; dark = 400-class.                                                                                                                              |
| `badge-error-background`                  | `{p}-destructive/10 dark:{p}-destructive/15`                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Semantic status badge = tint.                                                                                                                                                      |
| `badge-error-icon-color`                  | `{p}-destructive`                                            |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-error-text`                        | `{p}-destructive`                                            |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-neutral-background`                | `{p}-muted`                                                  |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Neutral gray badge → `muted`.                                                                                                                                                      |
| `badge-neutral-icon-color`                | `{p}-muted-foreground`                                       |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-neutral-text`                      | `{p}-foreground`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-orange-background`                 | `{p}-orange-50 dark:{p}-orange-500/15`                       |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Decorative color: Tailwind palette in component (spec).                                                                                                                            |
| `badge-orange-icon-color`                 | `{p}-orange-500 dark:{p}-orange-400`                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-orange-text`                       | `{p}-orange-700 dark:{p}-orange-400`                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Old light text = palette 700-class; dark = 400-class.                                                                                                                              |
| `badge-pink-background`                   | `{p}-pink-50 dark:{p}-pink-500/15`                           |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Decorative color: Tailwind palette in component (spec).                                                                                                                            |
| `badge-pink-icon-color`                   | `{p}-pink-500 dark:{p}-pink-400`                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-pink-text`                         | `{p}-pink-700 dark:{p}-pink-400`                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Old light text = palette 700-class; dark = 400-class.                                                                                                                              |
| `badge-primary-background`                | `{p}-primary/10 dark:{p}-primary/15`                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Badge tint.                                                                                                                                                                        |
| `badge-primary-icon-color`                | `{p}-primary`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-primary-text`                      | `{p}-primary`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-purple-background`                 | `{p}-purple-50 dark:{p}-purple-500/15`                       |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Decorative color: Tailwind palette in component (spec).                                                                                                                            |
| `badge-purple-icon-color`                 | `{p}-purple-500 dark:{p}-purple-400`                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-purple-text`                       | `{p}-purple-700 dark:{p}-purple-400`                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Old light text = palette 700-class; dark = 400-class.                                                                                                                              |
| `badge-rose-background`                   | `{p}-rose-50 dark:{p}-rose-500/15`                           |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Decorative color: Tailwind palette in component (spec).                                                                                                                            |
| `badge-rose-icon-color`                   | `{p}-rose-500 dark:{p}-rose-400`                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-rose-text`                         | `{p}-rose-700 dark:{p}-rose-400`                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Old light text = palette 700-class; dark = 400-class.                                                                                                                              |
| `badge-sky-background`                    | `{p}-sky-50 dark:{p}-sky-500/15`                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Decorative color: Tailwind palette in component (spec).                                                                                                                            |
| `badge-sky-icon-color`                    | `{p}-sky-500 dark:{p}-sky-400`                               |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-sky-text`                          | `{p}-sky-700 dark:{p}-sky-400`                               |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Old light text = palette 700-class; dark = 400-class.                                                                                                                              |
| `badge-success-background`                | `{p}-success/10 dark:{p}-success/15`                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Semantic status badge = tint.                                                                                                                                                      |
| `badge-success-icon-color`                | `{p}-success`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-success-text`                      | `{p}-success`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-violet-background`                 | `{p}-violet-50 dark:{p}-violet-500/15`                       |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Decorative color: Tailwind palette in component (spec).                                                                                                                            |
| `badge-violet-icon-color`                 | `{p}-violet-500 dark:{p}-violet-400`                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-violet-text`                       | `{p}-violet-700 dark:{p}-violet-400`                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Old light text = palette 700-class; dark = 400-class.                                                                                                                              |
| `badge-warning-background`                | `{p}-warning/10 dark:{p}-warning/15`                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Semantic status badge = tint.                                                                                                                                                      |
| `badge-warning-icon-color`                | `{p}-warning`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `badge-warning-text`                      | `{p}-warning`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `base-100`                                | `{p}-border`                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Default hairline border → `border`.                                                                                                                                                |
| `base-200`                                | `{p}-border`                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Default hairline border → `border`.                                                                                                                                                |
| `base-300`                                | `{p}-input`                                                  | drawer: `bg-muted-foreground`                                                                                                                                                                                                                                                                                                                                                                                           | auto        | Form-control border (gray-300) → `input`. `hover:bg-base-300` in drawer handle is a bug in v3 → see foreground-soft-50.                                                            |
| `base-50`                                 | `{p}-border/50`                                              | checkbox: `border-input`                                                                                                                                                                                                                                                                                                                                                                                                | auto-review | Faintest border (gray-100) → `border` at 50%. Disabled variants follow the disabled convention.                                                                                    |
| `button-disabled-background`              | `{v}:opacity-50`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Disabled convention.                                                                                                                                                               |
| `button-disabled-text`                    | `{v}:opacity-50`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Disabled convention.                                                                                                                                                               |
| `button-error-background`                 | `{p}-destructive`                                            |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Solid red → `destructive`.                                                                                                                                                         |
| `button-error-focus-ring`                 | `{p}-destructive/20`                                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-error-hover-background`           | `{p}-destructive/70`                                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review |                                                                                                                                                                                    |
| `button-error-outline-background`         | `{p}-destructive/10 dark:{p}-destructive/15`                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Tint (spec example).                                                                                                                                                               |
| `button-error-outline-border`             | `{p}-destructive`                                            |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Dark old value #7f1d1d (darker); Figma check.                                                                                                                                      |
| `button-error-outline-focus-ring`         | `{p}-destructive/20`                                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-error-outline-hover-background`   | `{p}-destructive/30`                                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Hover on tint; hover variant is prepended to each emitted class (`hover:bg-… hover:dark:bg-…`).                                                                                    |
| `button-error-outline-hover-text`         | `{p}-destructive/70`                                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-error-outline-text`               | `{p}-destructive/70`                                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Text on tint uses the main color (glossary).                                                                                                                                       |
| `button-error-text`                       | `{p}-destructive-foreground`                                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-ghost-hover-background`           | `{p}-accent`                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-ghost-hover-text`                 | `{p}-accent-foreground`                                      |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-ghost-text`                       | `{p}-muted-foreground`                                       |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Ghost label.                                                                                                                                                                       |
| `button-group-primary-hover-background`   | `{p}-primary`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-group-primary-hover-text`         | `{p}-primary-foreground`                                     |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-group-primary-text`               | `{p}-primary`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Segmented primary label.                                                                                                                                                           |
| `button-outline-background`               | `{p}-background`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Outline button fill (dark: `dark:bg-input/30` added by the component rewrite, not the codemod).                                                                                    |
| `button-outline-border`                   | `{p}-input`                                                  |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Outline/segmented border → `input`.                                                                                                                                                |
| `button-outline-disabled-background`      | `{v}:opacity-50`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Disabled convention.                                                                                                                                                               |
| `button-outline-disabled-border`          | `{v}:opacity-50`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Disabled convention.                                                                                                                                                               |
| `button-outline-disabled-text`            | `{v}:opacity-50`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Disabled convention.                                                                                                                                                               |
| `button-outline-focus-ring`               | `{p}-border`                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Neutral controls use `ring-border` (spec).                                                                                                                                         |
| `button-outline-hover-background`         | `{p}-accent`                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-outline-hover-text`               | `{p}-accent-foreground`                                      |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-outline-text`                     | `{p}-title`                                                  | link: `text-foreground`                                                                                                                                                                                                                                                                                                                                                                                                 | auto-review | Outline label (gray-800) → `title`; in `link` → `text-foreground`.                                                                                                                 |
| `button-primary-background`               | `{p}-primary`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Button primary fill.                                                                                                                                                               |
| `button-primary-focus-ring`               | `{p}-ring/20`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Focus ring tint (`ring-4 ring-ring/20`).                                                                                                                                           |
| `button-primary-hover-background`         | `{p}-primary/70`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Hover on solid fill → 70% of the color (Figma "Primary/Error/Success Accent" variables, #xxxxxxb2, same in light and dark).                                                        |
| `button-primary-text`                     | `{p}-primary-foreground`                                     |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-success-background`               | `{p}-success`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-success-focus-ring`               | `{p}-success/20`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-success-hover-background`         | `{p}-success/70`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review |                                                                                                                                                                                    |
| `button-success-outline-background`       | `{p}-success/10 dark:{p}-success/15`                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-success-outline-border`           | `{p}-success`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-success-outline-focus-ring`       | `{p}-success/20`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-success-outline-hover-background` | `{p}-success/30`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review |                                                                                                                                                                                    |
| `button-success-outline-text`             | `{p}-success/70`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `button-success-text`                     | `{p}-success-foreground`                                     |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        |                                                                                                                                                                                    |
| `card-background-50`                      | `{p}-card`                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Card surface → `card`.                                                                                                                                                             |
| `checkbox-background`                     | `{p}-background dark:{p}-input/30`                           |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Unchecked control fill.                                                                                                                                                            |
| `checkbox-checked-background`             | `{p}-primary`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Checked fill → `primary`.                                                                                                                                                          |
| `checkbox-checked-border`                 | `{p}-primary` (by prefix — ring: `ring-ring`)                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Checked border → `primary`; focus ring (`ring-X/20`) → `ring-ring/20`.                                                                                                             |
| `checkbox-checked-icon-color`             | `{p}-primary-foreground`                                     |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Check mark / radio dot → `primary-foreground`.                                                                                                                                     |
| `datepicker-selected-background`          | `{p}-primary`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Selected date → `primary` (`/10` carries).                                                                                                                                         |
| `datepicker-selected-hover-background`    | `{p}-accent`                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Hover on unselected date → `accent`.                                                                                                                                               |
| `dropdown-background`                     | `{p}-popover`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Menu/listbox/select surface → `popover`.                                                                                                                                           |
| `dropdown-divider`                        | `{p}-border`                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Menu divider → `border`.                                                                                                                                                           |
| `dropdown-hover-background`               | `{p}-accent`                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Menu item hover/active → `accent` (opacity suffix such as `/50` carries over).                                                                                                     |
| `error-500`                               | `{p}-destructive`                                            |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Status red → `destructive` (opacity suffix carries over, e.g. `/10`).                                                                                                              |
| `foreground-soft-50`                      | `{p}-muted-foreground`                                       |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Drawer swipe handle (near-black bar) → muted-foreground; Figma check.                                                                                                              |
| `info-500`                                | `{p}-info`                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | → `info`.                                                                                                                                                                          |
| `input-background`                        | `{p}-background dark:{p}-input/30`                           |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Control fill → `background`; dark = `input` at 30% (≈ Figma 5% white, spec).                                                                                                       |
| `input-disabled-text`                     | `{v}:opacity-50`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Disabled convention: replace with `opacity-50` on the same state variant (`disabled:`/`data-disabled:`); dedupe when several disabled-\* classes collapse. Do NOT carry the color. |
| `input-error`                             | `{p}-destructive`                                            |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Error text → `destructive`.                                                                                                                                                        |
| `input-error-focus-border`                | `{p}-destructive`                                            |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Error border → `border-destructive`; ring → `ring-destructive/20` (opacity carries).                                                                                               |
| `input-label-text`                        | `{p}-foreground`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Field labels → `foreground` (same as old text-50 role).                                                                                                                            |
| `input-placeholder-text`                  | `{p}-muted-foreground`                                       |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Placeholder → `muted-foreground` (shadcn convention).                                                                                                                              |
| `input-primary-focus-border`              | `{p}-ring/50` (by prefix — ring: `ring-ring`; bg: `bg-ring`) |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Brand focus border (primary-300). `border-` → `border-ring/50`; `ring-X/20` → `ring-ring/20`; `bg-X/20` → `bg-ring/20`.                                                            |
| `input-success-focus-border`              | `{p}-success`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Success border → `border-success`; ring → `ring-success/20`.                                                                                                                       |
| `neutral-brand-color`                     | `{p}-primary`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Active tab text (brand).                                                                                                                                                           |
| `popover-border`                          | `{p}-border`                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Popover border → `border` (token dropped).                                                                                                                                         |
| `primary-100`                             | **manual**                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                         | manual      | Chart series color → `--chart-*` variables (ticket 13).                                                                                                                            |
| `primary-300`                             | `{p}-ring/50`                                                | chart: `MANUAL`                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Light brand (#91aeff): focus border on checkbox/radio/resizable → `ring` at 50%. Chart uses → manual.                                                                              |
| `primary-400`                             | `{p}-ring/20`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Ghost-button focus ring → standard focus ring tint.                                                                                                                                |
| `primary-50`                              | `{p}-primary/10 dark:{p}-primary/15`                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Soft primary surface → tint. A `/N` suffix on this class → manual.                                                                                                                 |
| `primary-500`                             | `{p}-primary`                                                | chart: `MANUAL`                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Brand → `primary` (opacity suffix carries over). Chart series colors → manual.                                                                                                     |
| `primary-600`                             | `hover:{p}-primary/70`                                       |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Link hover (darker brand) → `primary/70` (Figma Link/Primary/Hover = Primary Accent, confirmed in ticket 05).                                                                      |
| `primary-700`                             | **manual**                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                         | manual      | Chart series color (ticket 13).                                                                                                                                                    |
| `primary-900`                             | **manual**                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                         | manual      | Chart series color (ticket 13).                                                                                                                                                    |
| `skeleton-gradient-50`                    | `{p}-muted`                                                  |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Skeleton fill → `muted` (animation: see non-color deps).                                                                                                                           |
| `success-500`                             | `{p}-success`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | → `success`.                                                                                                                                                                       |
| `tab-active-background`                   | `{p}-background dark:{p}-input/30`                           |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Active tab on muted track → `background` (dark: `input/30`).                                                                                                                       |
| `tab-secondary-active-background`         | `{p}-primary/10 dark:{p}-primary/15`                         |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Soft primary tint.                                                                                                                                                                 |
| `text-100`                                | `{p}-muted-foreground`                                       |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Secondary text → `muted-foreground`.                                                                                                                                               |
| `text-200`                                | `{p}-muted-foreground`                                       | breadcrumbs: `bg-muted-foreground/60`                                                                                                                                                                                                                                                                                                                                                                                   | auto-review | Tertiary/placeholder text (old gray-400) collapses onto `muted-foreground` (gray-500). Slightly darker.                                                                            |
| `text-50`                                 | `{p}-foreground`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Body text → `foreground` (Figma #646973, lighter than old gray-700 #374151). Visual shift; check against Figma.                                                                    |
| `title-50`                                | `{p}-title`                                                  |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Headings / strong text → `title` token.                                                                                                                                            |
| `toggle-active-background`                | `{p}-primary` (by prefix — ring: `ring-ring`)                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Switch on → `primary`; focus ring → `ring-ring/20`.                                                                                                                                |
| `toggle-default-background`               | `{p}-input`                                                  |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto-review | Switch off track (gray-200 / dark gray-600) → `input` (shadcn).                                                                                                                    |
| `toggle-disabled-background`              | `{v}:opacity-50`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Disabled convention.                                                                                                                                                               |
| `toggle-disabled-foreground`              | `{v}:opacity-50`                                             |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Disabled convention.                                                                                                                                                               |
| `tooltip-border`                          | `{p}-border`                                                 |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | Tooltip border → `border`.                                                                                                                                                         |
| `tooltip-text`                            | `{p}-popover-foreground`                                     | slider: `text-foreground`                                                                                                                                                                                                                                                                                                                                                                                               | auto        | Tooltip text → `popover-foreground`.                                                                                                                                               |
| `warning-500`                             | `{p}-warning`                                                |                                                                                                                                                                                                                                                                                                                                                                                                                         | auto        | → `warning`.                                                                                                                                                                       |
| `white-100`                               | `{p}-white`                                                  | button: `text-primary-foreground`; alert: `text-primary-foreground`; calendar: `bg-background`, `text-primary-foreground`; range-calendar: `bg-background`, `text-primary-foreground`; time-picker: `text-primary-foreground`; slider: `bg-background`                                                                                                                                                                  | auto        | Text/bg on a solid colored fill. Tailwind palette `white`. Where the fill is a semantic color, prefer its `-foreground` (button, alert indicator).                                 |

## CSS variable references and other theme dependencies

| CSS variable reference    | Replacement               | Automation | Notes                                                                                                                                                                      |
| ------------------------- | ------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--color-primary-500`     | `var(--primary)`          | auto       | Brand color.                                                                                                                                                               |
| `--border-color-base-50`  | `var(--muted)`            | auto       | Faintest gray (track/divider); `bg-(--border-color-base-50)`→`bg-muted`, `border-(--…)`/`divide-(--…)`→`border-border/50`.                                                 |
| `--border-color-base-100` | `var(--border)`           | auto       |                                                                                                                                                                            |
| `--border-color-base-200` | `var(--border)`           | auto       |                                                                                                                                                                            |
| `--border-color-base-300` | `var(--input)`            | auto       |                                                                                                                                                                            |
| `--color-chart-grid`      | `var(--border)`           | manual     | Chart variables ship with chart docs page (ticket 13). Resolved: the v3.1 chart uses `stroke-border` instead of this ref; it remains here for migrating customized copies. |
| `--color-chart-tick`      | `var(--muted-foreground)` | manual     | Ticket 13. Resolved: the v3.1 chart uses `fill-muted-foreground` instead; kept for migrating customized copies.                                                            |
| `--color-chart-legend`    | `var(--foreground)`       | manual     | Ticket 13. Resolved: legend text uses `text-title`; kept for migrating customized copies.                                                                                  |
| `--sidebar-border`        | `var(--sidebar-border)`   | manual     | Fixed in ticket 13: `--sidebar-border` now ships in the component's `cssVars` (the `add`/`migrate` writer), so the v3 `hsl(var(--sidebar-border))` resolves.               |
| `--sidebar-accent`        | `var(--sidebar-accent)`   | manual     | Fixed in ticket 13: `--sidebar-accent` now ships in the component's `cssVars`.                                                                                             |

| Other theme dependency                                                                                        | Replacement                                                                         | Automation | Notes                                                                                          |
| ------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------- |
| `animate-pulse-custom`                                                                                        | animate-pulse                                                                       | auto       | Custom keyframe/animation removed from the theme stylesheet.                                   |
| `shadow-xs … shadow-2xl`                                                                                      | same class names                                                                    | auto       | Names unchanged; values come from Figma effect styles in the new theme stylesheet (ticket 02). |
| `shadow-3xl (new)`                                                                                            | n/a                                                                                 | auto       | Added by ticket 02; not used by core.                                                          |
| `font-sans (DM Sans)`                                                                                         | same                                                                                | auto       | Unchanged.                                                                                     |
| `hard-coded palette classes (bg-red-500, bg-green-500, bg-yellow-500, text-slate-50/950, border-neutral-300)` | semantic: bg-destructive / bg-success / bg-warning / text-foreground / border-input | manual     | Not old tokens, but bypass the contract; fix in the component rework.                          |
| `bg-[rgba(94,93,93,0.25)] backdrop (modal.tsx)`                                                               | bg-black/50 (shadcn overlay) — decision with D17                                    | manual     | Arbitrary value.                                                                               |

## Component API mapping

Parts and props per component. Rows marked **manual** are never rewritten by the codemod: resolve them yourself.

### `accordion`

Automation: codemod: partial. Rebuilt on RAC DisclosureGroup with shadcn part names. The five Tailgrids styles are kept as a Tailgrids-only `variant` on Accordion (ticket 12), rather than removed.

| Old part           | New part                                         | Note |
| ------------------ | ------------------------------------------------ | ---- |
| `AccordionRoot`    | Accordion (RAC DisclosureGroup)                  |      |
| `AccordionItem`    | AccordionItem (RAC Disclosure)                   |      |
| `AccordionTrigger` | AccordionTrigger (Heading + Button slot=trigger) |      |
| `AccordionContent` | AccordionContent (DisclosurePanel)               |      |

| Old prop                                     | New prop                                     | Value mapping | Automation | Note                                                                                |
| -------------------------------------------- | -------------------------------------------- | ------------- | ---------- | ----------------------------------------------------------------------------------- |
| `AccordionRoot variant style_one…style_five` | Accordion variant (kept, Tailgrids-only)     |               | auto       | Five visual styles kept as a Tailgrids-only variant on Accordion (ticket 12 / D07). |
| `type/collapsible (if any)`                  | allowsMultipleExpanded / defaultExpandedKeys |               | **manual** | RAC naming                                                                          |
| `AccordionItem value`                        | id                                           |               | auto       |                                                                                     |

### `alert`

Automation: codemod: partial.

| Old part           | New part         | Note              |
| ------------------ | ---------------- | ----------------- |
| `Alert`            | Alert            |                   |
| `AlertTitle`       | AlertTitle       |                   |
| `AlertDescription` | AlertDescription |                   |
| `AlertIndicator`   | AlertIndicator   | kept (D08)        |
| `AlertContent`     | AlertContent     | kept (D08)        |
| `(none)`           | AlertAction      | new optional part |

| Old prop | New prop | Value mapping                                                                             | Automation | Note                                                                                                    |
| -------- | -------- | ----------------------------------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------- |
| `status` | variant  | default → default; error → destructive; success → success; warning → warning; info → info | auto       | Rename prop; value `error`→`destructive`. success/warning/info are Tailgrids-only variants (kept, D08). |

### `alert-dialog`

Automation: codemod: partial. D17: re-composed with the AlertDialog family; unmodified copies are replaced, call sites are reported for re-composition.

| Old part                                         | New part                                                                          | Note                                                                                                |
| ------------------------------------------------ | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| `AlertDialog (single wrapper + Backdrop)`        | AlertDialogTrigger → AlertDialog → header/description/footer                      | Full re-composition; gains AlertDialogAction/AlertDialogCancel/AlertDialogMedia/AlertDialogOverlay. |
| `DialogHeader / DialogFooter etc. (from dialog)` | AlertDialogHeader / AlertDialogFooter / AlertDialogTitle / AlertDialogDescription | Dedicated parts.                                                                                    |
| `(none)`                                         | AlertDialogTrigger                                                                | new export: root                                                                                    |
| `(none)`                                         | AlertDialogAction                                                                 | new: Button slot=close                                                                              |
| `(none)`                                         | AlertDialogCancel                                                                 | new: outline Button slot=close                                                                      |
| `(none)`                                         | AlertDialogMedia                                                                  | new: optional icon/media slot                                                                       |
| `(none)`                                         | AlertDialogContent                                                                | new: alias of AlertDialog                                                                           |
| `(none)`                                         | AlertDialogOverlay                                                                | new: the ModalOverlay backdrop                                                                      |

| Old prop                                                                  | New prop                                                                     | Value mapping | Automation | Note                                                      |
| ------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ------------- | ---------- | --------------------------------------------------------- |
| `isOpen/defaultOpen/onOpenChange/isDismissable/isKeyboardDismissDisabled` | unchanged defaults (`isDismissable=false`, `isKeyboardDismissDisabled=true`) |               | auto       |                                                           |
| `AlertDialog single-wrapper composition`                                  | AlertDialogTrigger / AlertDialog family                                      |               | **manual** | Call sites must be re-composed; the codemod reports them. |

### `aspect-ratio`

Automation: codemod: partial. forwardRef + displayName removed (React 19 ref prop). `ratio` defaults to 16/9 (the old `video` default). Preset names cannot be rewritten to numeric expressions by the codemod, so they are reported; `customRatio={n}` is renamed to `ratio={n}`.

| Old part      | New part    | Note |
| ------------- | ----------- | ---- |
| `AspectRatio` | AspectRatio |      |

| Old prop               | New prop | Value mapping     | Automation    | Note                                                |
| ---------------------- | -------- | ----------------- | ------------- | --------------------------------------------------- | ---------- | ------------------------------------------------------------------------ |
| `ratio (variant: video | square   | …) + customRatio` | ratio: number | video → 16/9; square → 1; customRatio=n → ratio={n} | **manual** | shadcn: `ratio` number → `--ratio` CSS var. Preset names map to numbers. |

### `avatar`

Automation: codemod: partial. Exported parts already match shadcn; engine swap only.

| Old part           | New part         | Note |
| ------------------ | ---------------- | ---- |
| `Avatar`           | Avatar           |      |
| `AvatarImage`      | AvatarImage      |      |
| `AvatarFallback`   | AvatarFallback   |      |
| `AvatarBadge`      | AvatarBadge      |      |
| `AvatarGroup`      | AvatarGroup      |      |
| `AvatarGroupCount` | AvatarGroupCount |      |

| Old prop                       | New prop                   | Value mapping                                                                                       | Automation | Note                                         |
| ------------------------------ | -------------------------- | --------------------------------------------------------------------------------------------------- | ---------- | -------------------------------------------- |
| `size`                         | size                       | xs\|sm\|md\|lg\|xl… → default\|sm\|lg (shadcn); Tailgrids extra sizes kept as Tailgrids-only values | auto       | `md`→`default`.                              |
| `AvatarBadge status/live/ping` | unchanged (Tailgrids-only) |                                                                                                     | auto       | shadcn AvatarBadge has no status prop; keep. |

### `badge`

Automation: codemod: partial. Variants `outline\|ghost\|link` are added (D10). Decorative colors are reported by the codemod (no automatic replacement).

| Old part | New part                                    | Note |
| -------- | ------------------------------------------- | ---- |
| `Badge`  | Badge (unchanged); `badgeVariants` exported |      |

| Old prop                  | New prop                                              | Value mapping                                                                                  | Automation | Note                                                                      |
| ------------------------- | ----------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------- |
| `color`                   | variant                                               | gray → secondary; primary → default; error → destructive; success → success; warning → warning | auto       | Single `variant` prop; the 8 decorative palette colors are dropped (D10). |
| `size`                    | size                                                  | sm\|md\|lg → unchanged (Tailgrids-only; shadcn has none)                                       | auto       | Kept; shadcn Badge has no size.                                           |
| `prefixIcon / suffixIcon` | leadingIcon / trailingIcon (ReactNode props, renamed) |                                                                                                | auto       | D10                                                                       |

### `breadcrumbs`

Automation: codemod: partial. Composition replaces the data-driven `items` API (D13): `Breadcrumb` > `BreadcrumbList` > `BreadcrumbItem` > `BreadcrumbLink` / `BreadcrumbPage`, on RAC `Breadcrumbs`/`Breadcrumb`/`Link`. `BreadcrumbItem` renders a `BreadcrumbSeparator` for every non-current item (customizable via `separatorClassName`), and `BreadcrumbSeparator` can also be passed as a child for Tailgrids-only dividers (slash, dot). `items`, `dividerType` and `activeHref` are reported as manual — the codemod cannot build the tree.

| Old part                   | New part                    | Note                                                       |
| -------------------------- | --------------------------- | ---------------------------------------------------------- |
| `Breadcrumbs (items prop)` | Breadcrumb family (7 parts) | Name `Breadcrumbs`→`Breadcrumb`; data-driven → composition |

| Old prop           | New prop                    | Value mapping | Automation                       | Note |
| ------------------ | --------------------------- | ------------- | -------------------------------- | ---- | ---------- | ------------------------------------------------------ |
| `items`            | children (BreadcrumbItem…)  |               | **manual**                       |      |
| `dividerType slash | chevron                     | dot`          | `<BreadcrumbSeparator>` children |      | **manual** | Tailgrids-only dot/slash can stay as separator content |
| `activeHref`       | BreadcrumbPage on last item |               | **manual**                       |      |

### `button`

Automation: codemod: partial. Tracer-bullet component (ticket 05). Focus: `ring-4 ring-ring/20` (destructive: `ring-destructive/20`, success: `ring-success/20`, outline: `ring-border`).

| Old part       | New part                                                               | Note           |
| -------------- | ---------------------------------------------------------------------- | -------------- |
| `Button`       | Button (RAC Button; `data-slot="button"`, `data-variant`, `data-size`) |                |
| `buttonStyles` | buttonVariants                                                         | export renamed |
| `(none)`       | LinkButton (RAC Link styled as a button)                               | new part       |

| Old prop                    | New prop                                   | Value mapping                                                                                                                                                                                                                                                                                                                       | Automation | Note                                                                                                                |
| --------------------------- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------- |
| `variant`                   | variant + appearance                       | primary+fill → variant default; primary+outline → variant default + appearance outline; danger+fill → variant destructive; danger+outline → variant destructive + appearance outline; success+fill → variant success; success+outline → variant success + appearance outline; ghost → variant ghost; (none) → secondary, link (new) | auto       | v3 `variant`+`appearance` pair maps to new `variant` + `appearance` (default\|outline). `appearance` is kept (D01). |
| `appearance`                | appearance (default \| outline)            | fill → removed (default); outline → appearance outline; ghost + any → removed (ghost has no appearance)                                                                                                                                                                                                                             | auto       | D01: appearance is kept; only `fill` (the new default) is dropped. Neutral outline = v3 primary+outline.            |
| `size`                      | size                                       | xs → xs; sm → sm; md → default; lg → lg                                                                                                                                                                                                                                                                                             | auto       | D02 (pixel sizes stay Tailgrids)                                                                                    |
| `iconOnly`                  | size icon \| icon-xs \| icon-sm \| icon-lg | iconOnly + md → icon; iconOnly + xs → icon-xs; iconOnly + sm → icon-sm; iconOnly + lg → icon-lg                                                                                                                                                                                                                                     | auto       | D02                                                                                                                 |
| `disabled`                  | isDisabled                                 |                                                                                                                                                                                                                                                                                                                                     | auto       | D03                                                                                                                 |
| `pending`                   | isPending                                  |                                                                                                                                                                                                                                                                                                                                     | auto       | D03                                                                                                                 |
| `readOnly`                  | removed                                    |                                                                                                                                                                                                                                                                                                                                     | **manual** | RAC Button has no read-only; was a no-op.                                                                           |
| `onPress / other RAC props` | unchanged                                  |                                                                                                                                                                                                                                                                                                                                     | auto       | Behavior props kept.                                                                                                |

Removed props: `iconOnly` (replaced by the `icon*` sizes); `readOnly` (no RAC equivalent).

### `button-group`

Automation: codemod: partial. Raw `<button>` children are no longer styled as segments: v3.1 styles `[data-slot]` children, so children must be `Button`s. The codemod cannot detect this; it reports `variant`/`size` only.

| Old part      | New part             | Note                                       |
| ------------- | -------------------- | ------------------------------------------ |
| `ButtonGroup` | ButtonGroup          | `data-slot="button-group"`, `role="group"` |
| `(none)`      | ButtonGroupSeparator | new part                                   |
| `(none)`      | ButtonGroupText      | new part                                   |

| Old prop          | New prop    | Value mapping                                     | Automation                           | Note       |
| ----------------- | ----------- | ------------------------------------------------- | ------------------------------------ | ---------- | ------------------------------------ | --- |
| `variant (primary | secondary)` | removed — child `Button`s carry their own variant |                                      | **manual** | Segmented styling moves to children. |
| `size (sm         | md          | lg)`                                              | removed — child `Button`s carry size |            | **manual**                           |     |
| `(none)`          | orientation | horizontal\|vertical → new, default horizontal    | auto                                 |            |

Removed props: `variant` (shadcn ButtonGroup has no variant); `size` (shadcn ButtonGroup has no size).

### `calendar`

Automation: codemod: partial. Cell `data-*`/render props: `selected/disabled/outsideMonth/pressed/focusVisible` → RAC render props (`isSelected`, …).

| Old part                        | New part | Note                                                     |
| ------------------------------- | -------- | -------------------------------------------------------- |
| `Calendar + 8 sub-part exports` | Calendar | Sub-parts become internal; `renderCell` for custom cells |

| Old prop              | New prop                                                                                               | Value mapping | Automation | Note          |
| --------------------- | ------------------------------------------------------------------------------------------------------ | ------------- | ---------- | ------------- |
| `disabled / readonly` | isDisabled / isReadOnly                                                                                |               | auto       | D03           |
| `(none)`              | numberOfMonths, showWeekNumber, captionLayout label\|dropdown, buttonVariant, headerFormat, renderCell |               | auto       | new, optional |

### `card`

Automation: codemod: mostly. Parts already match; adds `data-slot` and `size`. Tailgrids Card takes `children`/`className` only, passes no rest props — fix to spread props.

| Old part          | New part        | Note |
| ----------------- | --------------- | ---- |
| `Card`            | Card            |      |
| `CardHeader`      | CardHeader      |      |
| `CardTitle`       | CardTitle       |      |
| `CardDescription` | CardDescription |      |
| `CardAction`      | CardAction      |      |
| `CardContent`     | CardContent     |      |
| `CardFooter`      | CardFooter      |      |

| Old prop | New prop              | Value mapping | Automation | Note          |
| -------- | --------------------- | ------------- | ---------- | ------------- |
| `(none)` | Card size default\|sm |               | auto       | new, optional |

### `carousel`

Automation: codemod: mostly. Same parts and embla; already `data-slot`. Token rewrite only.

| Old part                                                                                            | New part  | Note |
| --------------------------------------------------------------------------------------------------- | --------- | ---- |
| `Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, useCarousel, CarouselApi` | unchanged |      |

| Old prop                          | New prop  | Value mapping | Automation | Note |
| --------------------------------- | --------- | ------------- | ---------- | ---- |
| `opts/plugins/orientation/setApi` | unchanged |               | auto       |      |

### `chart`

Automation: codemod: partial. Chart series colors come from `--chart-1…5` (via `ChartConfig` / `ChartStyle`); grid uses `border`, ticks `muted-foreground`, tooltip surface `muted/50` with `border` and `title` text. `ChartContainer` gained `config` and wraps its own `div` (v3 applied `className` to `ResponsiveContainer`), so its call sites need a manual review. `indicator` square → dot is manual.

| Old part                                                                                       | New part                  | Note |
| ---------------------------------------------------------------------------------------------- | ------------------------- | ---- |
| `ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, useChart` | + ChartStyle, ChartConfig |      |

| Old prop                           | New prop | Value mapping | Automation                    | Note                    |
| ---------------------------------- | -------- | ------------- | ----------------------------- | ----------------------- | ---------- | --- |
| `ChartTooltipContent indicator dot | line     | square`       | indicator (dot\|line\|dashed) | square → dot (decision) | **manual** |     |

### `checkbox`

Automation: codemod: partial.

| Old part                               | New part                                           | Note                                       |
| -------------------------------------- | -------------------------------------------------- | ------------------------------------------ |
| `Checkbox (native input + custom box)` | Checkbox (RAC Checkbox; `checkbox-indicator` span) | Becomes a RAC component; children = label. |

| Old prop                              | New prop                                            | Value mapping                                             | Automation | Note                                          |
| ------------------------------------- | --------------------------------------------------- | --------------------------------------------------------- | ---------- | --------------------------------------------- | --- |
| `checked / defaultChecked / onChange` | isSelected / defaultSelected / onChange(isSelected) |                                                           | **manual** | Event signature changes (boolean, not event). |
| `disabled`                            | isDisabled                                          |                                                           | auto       |                                               |
| `size sm                              | md`                                                 | size sm\|default? (shadcn has none) — keep Tailgrids size |            | **manual**                                    | D05 |
| `(none)`                              | isIndeterminate                                     |                                                           | auto       |                                               |

### `collapsible`

Automation: codemod: mostly. Already RAC and `data-slot`-based; token rewrite only.

| Old part                          | New part                        | Note            |
| --------------------------------- | ------------------------------- | --------------- |
| `Collapsible / Trigger / Content` | Collapsible / Trigger / Content | names unchanged |

### `combobox`

Automation: codemod: partial. Multi-select maps to chip parts; MultiCombobox may remain a Tailgrids-only convenience wrapper (D13). The codemod matches a copy by file basename, so a copy in a `combobox/` folder is detected through `combobox.tsx`; the v3.1 source lives at `combobox/combobox.tsx`, which `registryFile` cannot address, so `pristineV3` is empty and copies are reported as `customized`, with `tailgrids add combobox --overwrite` as the way to upgrade. `multi-combobox.tsx` is not detected (it keeps its v3 export names).

| Old part                                                     | New part                                             | Note |
| ------------------------------------------------------------ | ---------------------------------------------------- | ---- |
| `Combobox`                                                   | Combobox                                             |      |
| `ComboboxInputWrapper + ComboboxInput`                       | ComboboxInput                                        |      |
| `ComboboxTrigger`                                            | ComboboxTrigger                                      |      |
| `ComboboxContent`                                            | ComboboxContent                                      |      |
| `ComboboxList`                                               | ComboboxList                                         |      |
| `ComboboxItem`                                               | ComboboxItem                                         |      |
| `ComboboxSection`                                            | ComboboxGroup                                        |      |
| `ComboboxHeader`                                             | ComboboxLabel                                        |      |
| `ComboboxSeparator`                                          | ComboboxSeparator                                    |      |
| `ComboboxEmpty`                                              | ComboboxEmpty                                        |      |
| `ComboboxLabel / ComboboxDescription / ComboboxErrorMessage` | FieldLabel / FieldDescription / FieldError           |      |
| `MultiCombobox + MultiComboboxDisplay`                       | ComboboxChips family                                 |      |
| `(none)`                                                     | ComboboxValue, ComboboxCollection, useComboboxAnchor |      |

### `command`

Automation: codemod: mostly. Parts and prop names already matched shadcn; token rewrite and `data-slot` plus the Tailgrids-only `CommandDialog` (⌘J) and inline clear button are kept. `CommandGroup heading` is unchanged.

| Old part                   | New part                 | Note                |
| -------------------------- | ------------------------ | ------------------- |
| `Command family (9 parts)` | Command family (9 parts) | Names already match |

| Old prop               | New prop | Value mapping | Automation | Note      |
| ---------------------- | -------- | ------------- | ---------- | --------- |
| `CommandGroup heading` | heading  |               | auto       | unchanged |

### `context-menu`

Automation: codemod: partial. Rebuilt on React Aria (D06). `ContextMenuTrigger` is the RAC `MenuTrigger` root using `onContextMenu`; the menu content is the `ContextMenu` part (the v3 `ContextMenuContent`/`ContextMenuPortal` are gone). The v3 root/content/trigger tree and the selection parts (`ContextMenuCheckboxItem`, `ContextMenuRadioItem`, `ContextMenuRadioGroup`) are reported as manual: selection is now `selectionMode`/`selectedKeys` on the menu with plain `ContextMenuItem`s, which `migrate` cannot infer. `ContextMenuItem`, `ContextMenuGroup`, `ContextMenuLabel`, `ContextMenuSeparator`, `ContextMenuShortcut`, `ContextMenuSub*` keep their names.

| Old part                                                                 | New part                                  | Note                            |
| ------------------------------------------------------------------------ | ----------------------------------------- | ------------------------------- |
| `ContextMenuCheckboxItem / ContextMenuRadioItem / ContextMenuRadioGroup` | ContextMenuItem + `selectionMode` on Menu | Selection is a Menu prop in RAC |
| `ContextMenuContent / ContextMenuPortal`                                 | removed (merged into ContextMenu)         |                                 |

| Old prop                 | New prop     | Value mapping | Automation | Note |
| ------------------------ | ------------ | ------------- | ---------- | ---- | --- |
| `inset / variant default | destructive` | unchanged     |            | auto |     |

### `date-field`

Automation: codemod: partial.

| Old part      | New part    | Note |
| ------------- | ----------- | ---- |
| `DateField`   | DateField   |      |
| `DateInput`   | DateInput   |      |
| `DateSegment` | DateSegment |      |

| Old prop                             | New prop                                   | Value mapping | Automation                                                                                          | Note                                                |
| ------------------------------------ | ------------------------------------------ | ------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------- | ---------- | --- |
| `invalid/required/disabled/readOnly` | isInvalid/isRequired/isDisabled/isReadOnly |               | auto                                                                                                | D03                                                 |
| `state default                       | error                                      | success`      | error → isInvalid/aria-invalid; success → `state="success"` kept; both also read from Field context | error → isInvalid; success → state="success" (kept) | **manual** | D04 |
| `orientation`                        | removed → Field                            |               | **manual**                                                                                          |                                                     |

### `date-picker`

Automation: codemod: partial. shadcn documents Date Picker as Popover+Calendar composition, no dedicated component.

| Old part            | New part          | Note |
| ------------------- | ----------------- | ---- |
| `DatePicker`        | DatePicker        |      |
| `DatePickerGroup`   | DatePickerGroup   |      |
| `DatePickerTrigger` | DatePickerTrigger |      |
| `DatePickerPopover` | DatePickerPopover |      |

| Old prop                             | New prop                                   | Value mapping | Automation | Note |
| ------------------------------------ | ------------------------------------------ | ------------- | ---------- | ---- |
| `disabled/readonly/required/invalid` | isDisabled/isReadOnly/isRequired/isInvalid |               | auto       | D03  |

### `description`

Automation: codemod: partial.

| Old part      | New part                      | Note                                                                                |
| ------------- | ----------------------------- | ----------------------------------------------------------------------------------- |
| `Description` | FieldDescription (Field part) | Merge into `FieldDescription`; keep `Description` only if used outside Field (D14). |

### `dialog`

Automation: codemod: partial. D17: Dialog owns ModalOverlay+Modal+Dialog and gains DialogTrigger/DialogOverlay. The overlay/OverlayWrapper helper is no longer needed.

| Old part                              | New part                                                    | Note                                              |
| ------------------------------------- | ----------------------------------------------------------- | ------------------------------------------------- |
| `Dialog (self-contained, owns Modal)` | Dialog (ModalOverlay + Modal + Dialog inside DialogTrigger) | Uses DialogTrigger/ModalOverlay/Modal primitives. |
| `(none)`                              | DialogTrigger                                               | new export: root that composes trigger + dialog   |
| `DialogHeader`                        | DialogHeader                                                |                                                   |
| `DialogTitle`                         | DialogTitle                                                 |                                                   |
| `DialogDescription`                   | DialogDescription                                           |                                                   |
| `DialogBody`                          | removed                                                     | plain children                                    |
| `DialogFooter`                        | DialogFooter                                                |                                                   |
| `DialogClose`                         | DialogClose                                                 | defaults to appearance outline                    |
| `(none)`                              | DialogOverlay                                               | new export: the ModalOverlay backdrop             |

| Old prop                              | New prop                 | Value mapping | Automation | Note                                                                          |
| ------------------------------------- | ------------------------ | ------------- | ---------- | ----------------------------------------------------------------------------- |
| `isOpen / defaultOpen / onOpenChange` | unchanged (RAC)          |               | auto       |                                                                               |
| `showCloseButton`                     | showCloseButton          |               | auto       | unchanged                                                                     |
| `DialogBody (part)`                   | removed — plain children |               | **manual** | D17: the body wrapper is dropped; render its children directly inside Dialog. |

Removed props: `DialogBody` (D17: overlay composition drops \*Body parts (plain children)).

### `drawer`

Automation: codemod: partial. D06/D17: keeps framer-motion for motion; DrawerBody removed, DrawerPortal/DrawerOverlay/DrawerSwipeHandle added.

| Old part                                 | New part                                                                   | Note                                                        |
| ---------------------------------------- | -------------------------------------------------------------------------- | ----------------------------------------------------------- |
| `Drawer / DrawerTrigger / DrawerContent` | unchanged names; DrawerContent gains DrawerPortal/DrawerOverlay internally |                                                             |
| `DrawerBody`                             | removed                                                                    | plain children; make the scroll area flex-1 overflow-y-auto |
| `(none)`                                 | DrawerPortal                                                               | new export                                                  |
| `(none)`                                 | DrawerOverlay                                                              | new export                                                  |
| `(none)`                                 | DrawerSwipeHandle                                                          | new export; replaces the internal handle                    |

| Old prop                       | New prop                                                   | Value mapping | Automation | Note                                                              |
| ------------------------------ | ---------------------------------------------------------- | ------------- | ---------- | ----------------------------------------------------------------- | ------------------------------------------------------ | ---- | --- |
| `side top                      | right                                                      | bottom        | left`      | side (swipe direction)                                            | top → top; right → right; bottom → bottom; left → left | auto |     |
| `showCloseButton / showHandle` | showCloseButton (DrawerContent) / showSwipeHandle (Drawer) |               | **manual** | `showHandle` on DrawerContent became `showSwipeHandle` on Drawer. |
| `DrawerBody (part)`            | removed — plain children                                   |               | **manual** | D17.                                                              |

Removed props: `DrawerBody` (plain children (D17)); `showHandle` (replaced by Drawer `showSwipeHandle` / DrawerSwipeHandle).

### `dropdown`

Automation: codemod: partial. Nomenclature follows shadcn aria (D18): `DropdownMenuTrigger` is the RAC `MenuTrigger` root and `DropdownMenu` is the popover + `Menu` content. The v3 tree nests the trigger button and content inside the root, so the root/content/trigger swap (and the trigger button becoming the trigger's child) is a structural rewrite: `migrate` reports those three elements instead of renaming them. `DropdownMenuSection` → `DropdownMenuGroup` and `DropdownMenuHeader` → `DropdownMenuLabel` are renamed automatically. New parts: `DropdownMenuShortcut`, `DropdownMenuSub`, `DropdownMenuSubTrigger`, `DropdownMenuSubContent`; `DropdownMenuItem` gained `variant="destructive"`. Deviation: the content part keeps `data-slot="dropdown-menu-content"` so it stays distinguishable from the trigger, as in shadcn aria.

| Old part                | New part                                       | Note                    |
| ----------------------- | ---------------------------------------------- | ----------------------- |
| `DropdownMenu`          | DropdownMenuTrigger                            | root/trigger roles swap |
| `DropdownMenuContent`   | DropdownMenu                                   | content = DropdownMenu  |
| `DropdownMenuItem`      | DropdownMenuItem                               |                         |
| `DropdownMenuSection`   | DropdownMenuGroup                              |                         |
| `DropdownMenuHeader`    | DropdownMenuLabel                              |                         |
| `DropdownMenuSeparator` | DropdownMenuSeparator                          |                         |
| `(none)`                | DropdownMenuShortcut/Sub/SubTrigger/SubContent | new                     |

| Old prop | New prop                                      | Value mapping | Automation | Note |
| -------- | --------------------------------------------- | ------------- | ---------- | ---- |
| `(none)` | DropdownMenuItem variant default\|destructive |               | auto       | new  |

### `field`

Automation: codemod: partial. Only `Field` root is new. Tokens: `text-input-label-text`, `text-input-error`, `border-base-200`.

| Old part           | New part         | Note |
| ------------------ | ---------------- | ---- |
| `FieldSet`         | FieldSet         |      |
| `FieldLegend`      | FieldLegend      |      |
| `FieldGroup`       | FieldGroup       |      |
| `FieldContent`     | FieldContent     |      |
| `FieldLabel`       | FieldLabel       |      |
| `FieldTitle`       | FieldTitle       |      |
| `FieldDescription` | FieldDescription |      |
| `FieldError`       | FieldError       |      |
| `FieldSeparator`   | FieldSeparator   |      |
| `(none)`           | Field            |      |

| Old prop                                    | New prop                                 | Value mapping | Automation | Note |
| ------------------------------------------- | ---------------------------------------- | ------------- | ---------- | ---- |
| `FieldSet hasCheckboxGroup / hasRadioGroup` | removed — compose with Field orientation |               | **manual** |      |
| `FieldGroup disabled/readOnly`              | removed (plain div)                      |               | **manual** | D03  |

### `hover-card`

Automation: codemod: partial. D06: Base UI PreviewCard → React Aria. HoverCardTrigger is the root and HoverCard is the content; call sites are reported.

| Old part                                          | New part                                      | Note                                                              |
| ------------------------------------------------- | --------------------------------------------- | ----------------------------------------------------------------- |
| `HoverCard / HoverCardTrigger / HoverCardContent` | HoverCardTrigger (root) + HoverCard (content) | Structure inverts like Tooltip; content is the RAC Tooltip popup. |

| Old prop                   | New prop             | Value mapping | Automation | Note                                                  |
| -------------------------- | -------------------- | ------------- | ---------- | ----------------------------------------------------- |
| `side, align`              | placement            |               | **manual** | `side="top" align="start"` → `placement="top start"`. |
| `sideOffset / alignOffset` | offset / crossOffset |               | **manual** |                                                       |
| `HoverCardContent (part)`  | HoverCard            |               | **manual** |                                                       |

Removed props: `HoverCardContent` (renamed to HoverCard (content)).

### `input`

Automation: codemod: partial. All `border-input-*-focus-border`/`bg-input-background`/`text-input-*` tokens rewritten via token table.

| Old part | New part                               | Note |
| -------- | -------------------------------------- | ---- |
| `Input`  | Input (RAC Input, `data-slot="input"`) |      |

| Old prop        | New prop | Value mapping | Automation                                                                                          | Note                                                |
| --------------- | -------- | ------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------- | ---------- | --- |
| `state (default | error    | success)`     | error → isInvalid/aria-invalid; success → `state="success"` kept; both also read from Field context | error → isInvalid; success → state="success" (kept) | **manual** | D04 |

### `input-group`

Automation: codemod: mostly. Already structurally aligned; mainly token rewrite + add `InputGroupText`.

| Old part             | New part           | Note |
| -------------------- | ------------------ | ---- |
| `InputGroup`         | InputGroup         |      |
| `InputGroupAddon`    | InputGroupAddon    |      |
| `InputGroupButton`   | InputGroupButton   |      |
| `InputGroupInput`    | InputGroupInput    |      |
| `InputGroupTextarea` | InputGroupTextarea |      |
| `(none)`             | InputGroupText     |      |

| Old prop                | New prop | Value mapping                                                | Automation | Note                    |
| ----------------------- | -------- | ------------------------------------------------------------ | ---------- | ----------------------- |
| `InputGroupAddon align` | align    | inline-start\|inline-end\|block-start\|block-end → unchanged | auto       | Already matches shadcn. |
| `InputGroupButton size` | size     | xs\|icon-xs\|sm\|icon-sm → unchanged                         | auto       |                         |

### `label`

Automation: codemod: full. Token: `text-text-50` → `text-foreground`.

| Old part | New part                               | Note |
| -------- | -------------------------------------- | ---- |
| `Label`  | Label (RAC Label, `data-slot="label"`) |      |

### `link`

Automation: codemod: partial. No shadcn counterpart as a component; closest is `Button variant="link"` / `LinkButton`. Keep as Tailgrids-only on the same conventions.

| Old part | New part                              | Note                                                                    |
| -------- | ------------------------------------- | ----------------------------------------------------------------------- |
| `Link`   | Link (RAC `Link`, `data-slot="link"`) | New: render with RAC Link so `onPress`/`href` router integration works. |

| Old prop  | New prop | Value mapping                     | Automation | Note                            |
| --------- | -------- | --------------------------------- | ---------- | ------------------------------- |
| `variant` | variant  | dark → default; primary → primary | auto       | Renamed value `dark`→`default`. |
| `size`    | size     | sm\|md → unchanged                | auto       |                                 |

### `list`

Automation: codemod: partial. Closest shadcn concept: Item/ItemGroup/ItemSeparator (D13).

| Old part | New part              | Note |
| -------- | --------------------- | ---- |
| `List`   | List (Tailgrids-only) |      |

| Old prop       | New prop     | Value mapping | Automation | Note |
| -------------- | ------------ | ------------- | ---------- | ---- |
| `direction`    | direction    |               | auto       |      |
| `hideDividers` | hideDividers |               | auto       |      |

### `menubar`

Automation: codemod: partial. Tailgrids-only API on React Aria (D06; shadcn has no menubar). Part names are kept; the menubar is a RAC `Toolbar` whose `MenubarMenu` coordinates a single open menu (`isOpen`/`onOpenChange`), and `MenubarItem` covers both plain and selectable items (`selectionMode` on `MenubarContent`) with `variant="destructive"`. Deviation: `MenubarMenu` needs the menubar's open state, so it must render inside `Menubar`; the v3 Base UI props (`disabled`, `modal`, `loopFocus`) are replaced by React Aria `Toolbar`/`MenuTrigger` props.

| Old part                                                                                                                              | New part                                                                        | Note                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `Menubar / MenubarMenu / MenubarTrigger / MenubarContent`                                                                             | same names (`Menubar` is a RAC `Toolbar`; `MenubarMenu` is a RAC `MenuTrigger`) | Radix/Base UI-style API retained (D13)                                                                                      |
| `MenubarItem / MenubarLabel / MenubarSeparator / MenubarShortcut / MenubarGroup / MenubarSub / MenubarSubTrigger / MenubarSubContent` | same names                                                                      |                                                                                                                             |
| `MenubarCheckboxItem / MenubarRadioItem / MenubarRadioGroup`                                                                          | MenubarItem + `selectionMode`/`selectedKeys` on MenubarContent                  | React Aria has menu-level selection; the dedicated item parts are folded into `MenubarItem` (same approach as context-menu) |

### `modal`

Automation: removed in v3.1. Removed in v3.1 (D17). The codemod detects Modal copies and reports every import/call site; it needs no registry source.

| Old part                                   | New part             | Note                                                                                    |
| ------------------------------------------ | -------------------- | --------------------------------------------------------------------------------------- |
| `Modal (open/onClose, hand-rolled portal)` | removed — use Dialog | D17: Dialog composes ModalOverlay + Modal + Dialog. No registry source ships for Modal. |

| Old prop  | New prop            | Value mapping | Automation | Note             |
| --------- | ------------------- | ------------- | ---------- | ---------------- |
| `open`    | isOpen              |               | auto       | on Dialog        |
| `onClose` | onOpenChange(false) |               | **manual** | Signature change |

Removed props: `Modal` (Replaced by Dialog (D17)).

### `native-select`

Automation: codemod: partial.

| Old part               | New part             | Note |
| ---------------------- | -------------------- | ---- |
| `NativeSelect`         | NativeSelect         |      |
| `NativeSelectOptGroup` | NativeSelectOptGroup |      |
| `NativeSelectOption`   | NativeSelectOption   |      |

| Old prop          | New prop | Value mapping | Automation                                                                                          | Note                                                |
| ----------------- | -------- | ------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------- | ---------- | --- |
| `variant (default | error    | success)`     | error → isInvalid/aria-invalid; success → `state="success"` kept; both also read from Field context | error → isInvalid; success → state="success" (kept) | **manual** | D04 |
| `(none)`          | size     |               | auto                                                                                                | New: `size` `sm \| default` (shadcn).               |

### `navigation-menu`

Automation: codemod: partial. Engine stays Base UI (D06; shadcn has no navigation menu). Part names are kept; only tokens and `data-slot` change. `NavigationMenuPositioner` remains the viewport/animation wrapper.

| Old part                | New part        | Note                 |
| ----------------------- | --------------- | -------------------- |
| `NavigationMenu family` | keep part names | Base UI API retained |

### `number-field`

Automation: codemod: partial. No shadcn aria counterpart (shadcn composes InputGroup + RAC NumberField in docs only).

| Old part            | New part          | Note |
| ------------------- | ----------------- | ---- |
| `NumberField`       | NumberField       |      |
| `NumberFieldGroup`  | NumberFieldGroup  |      |
| `NumberFieldAction` | NumberFieldAction |      |

| Old prop                                   | New prop                                         | Value mapping | Automation | Note |
| ------------------------------------------ | ------------------------------------------------ | ------------- | ---------- | ---- |
| `invalid / required / disabled / readOnly` | isInvalid / isRequired / isDisabled / isReadOnly |               | auto       | D03  |

### `otp-input`

Automation: codemod: partial. Adopting shadcn structure adds a dependency (D13). Ticket 07: `migrate` replaces a pristine v3 copy wholesale; the v3 `OtpInput` was a default export, which the codemod does not resolve at call sites, so `import OtpInput from …` usages must be rewritten by hand (the replaced file exports only the named `InputOTP*` parts). Docs/previews use `InputOTP`'s own `disabled` prop (a `TextField isDisabled` does not reach it).

| Old part                      | New part                                                 | Note                       |
| ----------------------------- | -------------------------------------------------------- | -------------------------- |
| `OtpInput (single component)` | InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator | Needs `input-otp` package. |

| Old prop       | New prop                              | Value mapping                           | Automation | Note       |
| -------------- | ------------------------------------- | --------------------------------------- | ---------- | ---------- | --------------------------------------- |
| `digitLength 4 | 6`                                    | `maxLength` + number of `InputOTPSlot`s |            | **manual** | Call sites rewritten to composed parts. |
| `label, hint`  | Field + FieldLabel + FieldDescription |                                         | **manual** |            |

### `overlay`

Automation: removed in v3.1. Removed in v3.1 (D17). The codemod detects OverlayWrapper/Backdrop copies and reports every import/call site; no registry source ships.

| Old part                    | New part                                                                                  | Note                                 |
| --------------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------ |
| `OverlayWrapper / Backdrop` | removed — Dialog/Sheet/AlertDialog compose React Aria DialogTrigger/ModalOverlay directly | D17: no replacement component ships. |

Removed props: `OverlayWrapper` (removed (D17) — Dialog/Sheet own the trigger+overlay); `Backdrop` (removed (D17) — Dialog/Sheet own the overlay).

### `pagination`

Automation: codemod: partial. shadcn part list with Tailgrids extras (D13): `Pagination`, `PaginationContent`, `PaginationItem`, `PaginationLink`, `PaginationPrevious`, `PaginationNext`, `PaginationEllipsis`, plus `PaginationPage` (numbered page button). `Pagination` keeps the v3 page-state props (`currentPage`, `totalPages`, `onPageChange`, `variant`, `sideLayout`) as a Tailgrids-only convenience mode and renders the same list when `totalPages` is given; pass children to compose the link-based parts instead. The codemod rewrites the internal `Button` usages and reports the state-driven props as a review item so consumers can opt into composition.

| Old part     | New part                    | Note                      |
| ------------ | --------------------------- | ------------------------- |
| `Pagination` | Pagination family (7 parts) | data-driven → composition |

| Old prop                                  | New prop                    | Value mapping                      | Automation                      | Note       |
| ----------------------------------------- | --------------------------- | ---------------------------------- | ------------------------------- | ---------- | ---------- | --- |
| `currentPage / totalPages / onPageChange` | composed links (`isActive`) |                                    | **manual**                      |            |
| `variant default                          | compact`                    | Tailgrids-only; keep or drop (D13) |                                 | **manual** |            |
| `sideLayout full                          | label                       | icon`                              | PaginationPrevious/Next content |            | **manual** |     |

### `popover`

Automation: codemod: partial. D17: PopoverTrigger (RAC DialogTrigger) is the root; PopoverArrow is internal.

| Old part       | New part                                          | Note                                 |
| -------------- | ------------------------------------------------- | ------------------------------------ |
| `Popover`      | Popover (content)                                 | arrow is internal                    |
| `PopoverArrow` | removed                                           | arrow rendered by Popover            |
| `(none)`       | PopoverTrigger                                    | new export: root (RAC DialogTrigger) |
| `(none)`       | PopoverHeader / PopoverTitle / PopoverDescription | new parts                            |

| Old prop              | New prop                                | Value mapping | Automation | Note                       |
| --------------------- | --------------------------------------- | ------------- | ---------- | -------------------------- |
| `placement/offset`    | unchanged (defaults `bottom`, offset 4) |               | auto       |                            |
| `PopoverArrow (part)` | removed — arrow internal                |               | **manual** | Delete `<PopoverArrow />`. |

Removed props: `PopoverArrow` (arrow is rendered by Popover).

### `progress`

Automation: codemod: partial.

| Old part                      | New part                                                                 | Note                                     |
| ----------------------------- | ------------------------------------------------------------------------ | ---------------------------------------- |
| `Progress (single component)` | Progress, ProgressTrack, ProgressIndicator, ProgressLabel, ProgressValue | Composable parts; wraps RAC ProgressBar. |

| Old prop               | New prop                                                         | Value mapping | Automation | Note                                                                                                                                         |
| ---------------------- | ---------------------------------------------------------------- | ------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `progress (number)`    | value                                                            |               | **manual** | Call sites change from `<Progress progress={40}/>` to `<Progress value={40}><ProgressTrack><ProgressIndicator/></ProgressTrack></Progress>`. |
| `withLabel`            | `<ProgressLabel/>` / `<ProgressValue/>` children                 |               | **manual** |                                                                                                                                              |
| `trackColor, barColor` | removed — style via className on ProgressTrack/ProgressIndicator |               | **manual** |                                                                                                                                              |

Removed props: `trackColor` (arbitrary color props bypass the token contract); `barColor` (same).

### `radio-input`

Automation: codemod: partial.

| Old part     | New part                                           | Note                          |
| ------------ | -------------------------------------------------- | ----------------------------- |
| `RadioInput` | RadioGroup + RadioGroupItem (RAC RadioGroup/Radio) | Group semantics now required. |

| Old prop                                    | New prop                                                | Value mapping         | Automation | Note       |
| ------------------------------------------- | ------------------------------------------------------- | --------------------- | ---------- | ---------- | --- |
| `name/value/checked/onChange on each input` | RadioGroup value/onChange(value) + RadioGroupItem value |                       | **manual** |            |
| `size sm                                    | md`                                                     | kept (Tailgrids-only) |            | **manual** | D05 |
| `disabled`                                  | isDisabled                                              |                       | auto       |            |

### `range-calendar`

Automation: codemod: partial.

| Old part                             | New part      | Note |
| ------------------------------------ | ------------- | ---- |
| `RangeCalendar + 9 sub-part exports` | RangeCalendar |      |

| Old prop            | New prop              | Value mapping | Automation | Note |
| ------------------- | --------------------- | ------------- | ---------- | ---- |
| `disabled/readonly` | isDisabled/isReadOnly |               | auto       | D03  |

### `resizable`

Automation: codemod: mostly. Same library (react-resizable-panels); token rewrite only.

| Old part                                                            | New part  | Note |
| ------------------------------------------------------------------- | --------- | ---- |
| `ResizablePanelGroup, ResizablePanel, ResizableHandle (withHandle)` | unchanged |      |

| Old prop     | New prop   | Value mapping | Automation | Note |
| ------------ | ---------- | ------------- | ---------- | ---- |
| `withHandle` | withHandle |               | auto       |      |

### `scroll-area`

Automation: codemod: partial.

| Old part                                      | New part   | Note                             |
| --------------------------------------------- | ---------- | -------------------------------- |
| `ScrollArea / ScrollAreaViewport / ScrollBar` | ScrollArea | viewport and scrollbars internal |

| Old prop                | New prop                      | Value mapping | Automation | Note |
| ----------------------- | ----------------------------- | ------------- | ---------- | ---- |
| `ScrollBar orientation` | ScrollArea `orientation` prop |               | **manual** |      |

### `select`

Automation: codemod: partial.

| Old part                                                           | New part                                            | Note |
| ------------------------------------------------------------------ | --------------------------------------------------- | ---- |
| `Select (label/description/errorMessage props)`                    | Select                                              |      |
| `SelectTrigger`                                                    | SelectTrigger                                       |      |
| `SelectDisplayValue as SelectValue`                                | SelectValue                                         |      |
| `SelectContent`                                                    | SelectContent                                       |      |
| `SelectItem`                                                       | SelectItem                                          |      |
| `SelectSection`                                                    | SelectGroup                                         |      |
| `SelectHeader`                                                     | SelectLabel                                         |      |
| `SelectSeparator`                                                  | SelectSeparator                                     |      |
| `SelectLabel/SelectDescription/SelectErrorMessage/SelectIndicator` | FieldLabel / FieldDescription / FieldError          |      |
| `(none)`                                                           | SelectInput, SelectEmpty, SelectList, SelectPopover |      |

| Old prop                                   | New prop                     | Value mapping | Automation | Note                 |
| ------------------------------------------ | ---------------------------- | ------------- | ---------- | -------------------- |
| `label, description, errorMessage (props)` | children parts (Field\*)     |               | **manual** | Props → composition. |
| `items + render fn`                        | items on SelectList/children |               | **manual** |                      |
| `isDisabled/isInvalid/isRequired`          | unchanged (already RAC)      |               | auto       |                      |

### `separator`

Automation: codemod: full. Uses `bg-(--border-color-base-200)` → `bg-border`.

| Old part    | New part                  | Note |
| ----------- | ------------------------- | ---- |
| `Separator` | Separator (RAC Separator) |      |

| Old prop      | New prop    | Value mapping                    | Automation | Note |
| ------------- | ----------- | -------------------------------- | ---------- | ---- |
| `orientation` | orientation | horizontal\|vertical → unchanged | auto       |      |

### `sheet`

Automation: codemod: partial. D17: SheetTrigger is the root and Sheet owns the overlay and panel; SheetContent and SheetBody are removed.

| Old part                                                                 | New part                    | Note                                                                             |
| ------------------------------------------------------------------------ | --------------------------- | -------------------------------------------------------------------------------- |
| `Sheet (DialogTrigger)`                                                  | SheetTrigger                | Root renamed to SheetTrigger (D17).                                              |
| `SheetOverlay`                                                           | (internal)                  | The overlay is rendered by Sheet.                                                |
| `SheetContent`                                                           | removed — folded into Sheet | Sheet takes side/showCloseButton/className.                                      |
| `SheetHeader / SheetTitle / SheetDescription / SheetFooter / SheetClose` | unchanged                   | SheetTitle uses Heading slot=title, SheetDescription uses Text slot=description. |
| `SheetBody`                                                              | removed                     | plain children; make the scroll area flex-1 overflow-y-auto                      |

| Old prop                            | New prop                 | Value mapping | Automation | Note                                              |
| ----------------------------------- | ------------------------ | ------------- | ---------- | ------------------------------------------------- | ------------------------------------------------------ | ---- | --- |
| `side right                         | left                     | top           | bottom`    | side on Sheet                                     | right → right; left → left; top → top; bottom → bottom | auto |     |
| `SheetContent side/showCloseButton` | moved to Sheet           |               | **manual** | SheetContent is removed; the props move to Sheet. |
| `SheetBody (part)`                  | removed — plain children |               | **manual** | D17.                                              |

Removed props: `SheetContent` (folded into Sheet (D17)); `SheetBody` (plain children (D17)); `SheetOverlay` (internal (D17)).

### `sidebar`

Automation: codemod: partial. Uses `--sidebar-*` CSS vars, shipped with the docs page and written by the CLI (ticket 13). The v3 `hsl(var(--sidebar-border))` bug is fixed by using `var(--sidebar-border)` directly. Parts, `variant`, `size`, `isActive` and `tooltip` props are unchanged; `SidebarTrigger` now uses React Aria `onPress` instead of `onClick`. Customized copies are reported.

| Old part                                                                                                                                                                                                                                                               | New part                                                                                                                                              | Note |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---- |
| `Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarTrigger, useIsMobile` | + SidebarGroupAction, SidebarInput, SidebarInset, SidebarMenuAction, SidebarMenuBadge, SidebarMenuSkeleton, SidebarRail, SidebarSeparator, useSidebar |      |

| Old prop                             | New prop              | Value mapping | Automation | Note                                                                                     |
| ------------------------------------ | --------------------- | ------------- | ---------- | ---------------------------------------------------------------------------------------- | --- | ---- | --- |
| `SidebarMenuButton isActive/tooltip` | unchanged             |               | auto       |                                                                                          |
| `variant default                     | outline, size default | sm            | lg`        | unchanged                                                                                |     | auto |     |
| `SidebarTrigger onClick`             | onPress               |               | **manual** | onClick was removed from SidebarTrigger; use React Aria's onPress with the same handler. |

### `skeleton`

Automation: codemod: full. Only token change (`bg-skeleton-gradient-50`→`bg-muted`) and `animate-pulse-custom`→`animate-pulse`. Default shape `h-3 rounded-full` stays Tailgrids visual.

| Old part   | New part                                                               | Note |
| ---------- | ---------------------------------------------------------------------- | ---- |
| `Skeleton` | Skeleton (`data-slot="skeleton"`, `animate-pulse rounded-md bg-muted`) |      |

### `slider`

Automation: codemod: partial.

| Old part               | New part                                                                                          | Note |
| ---------------------- | ------------------------------------------------------------------------------------------------- | ---- |
| `Slider (hooks-based)` | Slider (RAC Slider/SliderTrack/SliderThumb; parts `slider-track`, `slider-range`, `slider-thumb`) |      |

| Old prop               | New prop                   | Value mapping | Automation            | Note        |
| ---------------------- | -------------------------- | ------------- | --------------------- | ----------- | ---------- | --- |
| `thumbLabels`          | aria-label per SliderThumb |               | **manual**            |             |
| `thumbValueType hidden | text                       | tooltip`      | kept (Tailgrids-only) |             | **manual** | D13 |
| `isDisabled`           | isDisabled                 |               | auto                  | already RAC |

### `social-button`

Automation: codemod: partial. Deviation: the mapping originally said `appearance="outline"`→`variant="outline"`; D01 keeps `appearance`, so SocialButton still composes `<Button appearance="outline">`. Call-site rules mirror Button. `appearance="fill"` becomes `appearance="default"` (not removed) because SocialButton defaults to `outline`.

| Old part       | New part                           | Note |
| -------------- | ---------------------------------- | ---- |
| `SocialButton` | SocialButton (composes new Button) |      |

| Old prop                  | New prop                | Value mapping                                                                                                                  | Automation | Note                    |
| ------------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ---------- | ----------------------- |
| `(inherits Button props)` | (inherits Button props) | appearance="outline" → unchanged (kept, D01); `variant="primary"`→`default`, `danger`→`destructive`, `iconOnly`/size as Button | auto       | Follows Button mapping. |

### `spinner`

Automation: not codemod-ready — re-add with `--overwrite`. Uses `var(--color-primary-500)` and `var(--border-color-base-100)` → `var(--primary)` / `var(--border)` (css-var refs table). Not codemod-ready: a spinner copy is four files (`spinner/index.tsx`, `default`, `dotted`, `dotted-round`) and `migrate` replaces one file by basename, so it cannot detect or replace the set; the `Spinner` call-site API is unchanged (`aria-label` added). Re-add with `tailgrids add spinner --overwrite`.

| Old part  | New part | Note |
| --------- | -------- | ---- |
| `Spinner` | Spinner  |      |

| Old prop               | New prop | Value mapping | Automation                                                                             | Note |
| ---------------------- | -------- | ------------- | -------------------------------------------------------------------------------------- | ---- | ---------- | ------------------------------------------ |
| `size (sm              | md       | lg…)`         | className size utilities (`size-4` default); `size` prop kept as Tailgrids convenience |      | **manual** | shadcn Spinner takes only className.       |
| `variant files default | dotted   | dotted-round` | kept as Tailgrids-only variants                                                        |      | **manual** | Decide whether to keep three styles (D13). |

### `table`

Automation: codemod: partial.

| Old part      | New part                            | Note |
| ------------- | ----------------------------------- | ---- |
| `TableRoot`   | Table (+ `table-container` wrapper) |      |
| `TableHeader` | TableHeader                         |      |
| `TableBody`   | TableBody                           |      |
| `TableHead`   | TableHead                           |      |
| `TableRow`    | TableRow                            |      |
| `TableCell`   | TableCell                           |      |
| `(none)`      | TableFooter, TableCaption           |      |

| Old prop              | New prop  | Value mapping | Automation | Note |
| --------------------- | --------- | ------------- | ---------- | ---- |
| `TableRoot fullBleed` | className |               | **manual** |      |

Removed props: `fullBleed` (shadcn Table has none (container-level className)).

### `tabs`

Automation: codemod: partial. Rebuilt on RAC `Tabs`/`TabList`/`Tab`/`TabPanel` (D07) with shadcn part names and `data-slot`. `variant` (`default` \| `line`, was `minimal`) is accepted on `Tabs` as a Tailgrids convenience and forwarded to `TabsList`/`TabsTrigger`; `TabsList` also takes it directly. `direction` becomes RAC `orientation`, `defaultValue` becomes `defaultSelectedKey`, and the trigger/panel `value` becomes `id`. The v3 `icon`/`badge` props on `TabTrigger` move to children (manual).

| Old part     | New part                            | Note |
| ------------ | ----------------------------------- | ---- |
| `TabRoot`    | Tabs (RAC Tabs, `data-slot="tabs"`) |      |
| `TabList`    | TabsList (`variant default\|line`)  |      |
| `TabTrigger` | TabsTrigger (RAC Tab)               |      |
| `TabContent` | TabsContent (RAC TabPanel)          |      |

| Old prop                              | New prop           | Value mapping                      | Automation | Note              |
| ------------------------------------- | ------------------ | ---------------------------------- | ---------- | ----------------- |
| `TabRoot defaultValue`                | defaultSelectedKey |                                    | auto       | RAC naming        |
| `TabTrigger value / TabContent value` | id                 |                                    | auto       |                   |
| `variant (root)`                      | TabsList variant   | default → default; minimal → line  | auto       | Moves to TabsList |
| `direction`                           | orientation        | vertical\|horizontal → same values | auto       |                   |
| `TabTrigger icon / badge`             | children           |                                    | **manual** |                   |

### `text-area`

Automation: codemod: partial.

| Old part   | New part                | Note                                               |
| ---------- | ----------------------- | -------------------------------------------------- |
| `TextArea` | Textarea (RAC TextArea) | Name changes `TextArea`→`Textarea` (shadcn casing) |

| Old prop           | New prop                                                                                            | Value mapping                                       | Automation | Note |
| ------------------ | --------------------------------------------------------------------------------------------------- | --------------------------------------------------- | ---------- | ---- |
| `state`            | error → isInvalid/aria-invalid; success → `state="success"` kept; both also read from Field context | error → isInvalid; success → state="success" (kept) | **manual** | D04  |
| `rows (default 4)` | rows (default 3 in shadcn; keep 4)                                                                  |                                                     | auto       |      |

### `text-field`

Automation: codemod: partial. Ticket 07: also gains the Tailgrids-only `state="success"` (read by composed Input/Textarea via `group-data-[state=success]/field`).

| Old part    | New part                                | Note                                                                                |
| ----------- | --------------------------------------- | ----------------------------------------------------------------------------------- |
| `TextField` | TextField (RAC TextField, thin wrapper) | shadcn aria has no TextField; RAC `TextField` is used directly with `Field*` parts. |

| Old prop      | New prop                      | Value mapping | Automation | Note |
| ------------- | ----------------------------- | ------------- | ---------- | ---- |
| `invalid`     | isInvalid                     |               | auto       | D03  |
| `required`    | isRequired                    |               | auto       | D03  |
| `disabled`    | isDisabled                    |               | auto       | D03  |
| `readOnly`    | isReadOnly                    |               | auto       | D03  |
| `orientation` | removed → `Field orientation` |               | **manual** |      |

### `time-field`

Automation: codemod: partial.

| Old part    | New part                                       | Note |
| ----------- | ---------------------------------------------- | ---- |
| `TimeField` | TimeField (RAC) with `DateInput`/`DateSegment` |      |

| Old prop                             | New prop                                   | Value mapping | Automation | Note |
| ------------------------------------ | ------------------------------------------ | ------------- | ---------- | ---- |
| `invalid/required/disabled/readOnly` | isInvalid/isRequired/isDisabled/isReadOnly |               | auto       | D03  |
| `orientation`                        | removed → Field                            |               | **manual** |      |

### `time-picker`

Automation: codemod: partial. Tailgrids-only; uses react-stately.

| Old part            | New part          | Note |
| ------------------- | ----------------- | ---- |
| `TimePicker`        | TimePicker        |      |
| `TimePickerTrigger` | TimePickerTrigger |      |

### `toast`

Automation: codemod: partial. D06: raw components built with Sonner; Toast/AvatarToast props unchanged, Toaster added. Ticket file (10-batch-overlays) puts toast in this batch.

| Old part      | New part    | Note                                          |
| ------------- | ----------- | --------------------------------------------- |
| `Toast`       | Toast       | unchanged props; data-slot=toast              |
| `AvatarToast` | AvatarToast | unchanged                                     |
| `(none)`      | Toaster     | new: Sonner wrapper for stacked notifications |

| Old prop              | New prop  | Value mapping | Automation | Note     |
| --------------------- | --------- | ------------- | ---------- | -------- | ---------------------------------------------------------- | ----------------------------------------------------------------------------------- | ---- | ------------------------------------------------------------- |
| `variant success      | error     | info          | warning    | default` | variant success\|error\|info\|warning\|default (unchanged) | default → default; success → success; error → error; info → info; warning → warning | auto | Values unchanged; status token classes become semantic tints. |
| `Toast / AvatarToast` | unchanged |               | auto       |          |

### `switch`

Automation: not codemod-ready — re-add with `--overwrite`. Rename: `Toggle` → `Switch` (file `toggle.tsx` → `switch.tsx`);; the codemod reports `Toggle` copies and call sites (see the `toggle` row). `variant="new"` is the Tailgrids-only TailAdmin v2.5 design, checked against Figma node 2499-31600: track 44x20 (sm) / 52x24 (default), radius 12, padding 1.5px / 2px, thumb a white pill 26x17 / 30x20 with the Figma two-layer shadow, off `bg-input` (hover gray-300), on `bg-primary` (hover `/70`). The `default` variant keeps the v3 geometry (h-5/w-9, h-6/w-11). Deviation: Figma shows a darker brand-600 for hover-on; the code uses `bg-primary/70` per D09.

| Old part                             | New part                                                               | Note                                                                                                                       |
| ------------------------------------ | ---------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| `Toggle (native input + custom box)` | Switch (RAC Switch; `switch-track` + `switch-thumb`; children = label) | Rename: Tailgrids `Toggle` is shadcn `Switch`. shadcn `Toggle`/`ToggleGroup` (pressable buttons) are different components. |

| Old prop           | New prop                        | Value mapping    | Automation   | Note                                                                          |
| ------------------ | ------------------------------- | ---------------- | ------------ | ----------------------------------------------------------------------------- | --- |
| `size sm           | md`                             | size sm\|default | md → default | auto                                                                          |     |
| `label`            | children                        |                  | **manual**   | Pass the label as children; `aria-label` still works for label-less switches. |
| `checked/onChange` | isSelected/onChange(isSelected) |                  | **manual**   | Event signature changes (boolean, not event).                                 |
| `disabled`         | isDisabled                      |                  | auto         |                                                                               |
| `(none)`           | variant default\|new            |                  | auto         | New Tailgrids-only variant; design per TailAdmin v2.5 Figma (D05).            |

### `toggle`

Automation: renamed `switch` in v3.1 (codemod: partial). Renamed in v3.1 (D05). The codemod replaces a pristine `toggle.tsx` copy with the v3.1 `switch.tsx` (the old file is removed); a customised copy is kept and Switch is installed next to it. Either way imports are repointed to `switch` and call sites are rewritten (`Toggle` → `Switch`, `checked` → `isSelected`, `defaultChecked` → `defaultSelected`, `disabled` → `isDisabled`, `label` → children, `size="md"` → `"default"`); `onChange`, which now receives a boolean, is reported per call site. Props are documented on the `switch` row.

| Old part                             | New part                        | Note                                                                |
| ------------------------------------ | ------------------------------- | ------------------------------------------------------------------- |
| `Toggle (native input + custom box)` | renamed — Switch (`switch.tsx`) | D05: renamed `Switch`. No registry source ships under the old name. |

Removed props: `Toggle` (Renamed Switch (D05)).

### `tooltip`

Automation: codemod: partial. D06/D11: floating-ui → React Aria; the Tailgrids popover look is kept. Structure inverts (TooltipTrigger root, Tooltip content); call sites are reported.

| Old part               | New part              | Note                                           |
| ---------------------- | --------------------- | ---------------------------------------------- |
| `Tooltip (root/state)` | TooltipTrigger (root) | Structure inverts: TooltipTrigger is the root. |
| `TooltipTrigger`       | TooltipTrigger        | Wraps the trigger element + content.           |
| `TooltipContent`       | Tooltip               | Tooltip is the content now.                    |

| Old prop                                  | New prop                                                                      | Value mapping                            | Automation | Note                                                                  |
| ----------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------------- | ---------- | --------------------------------------------------------------------- |
| `placement/open/onOpenChange/initialOpen` | placement on Tooltip; isOpen/onOpenChange/defaultOpen/delay on TooltipTrigger | open → isOpen; initialOpen → defaultOpen | **manual** | Props move between parts; the codemod reports each tooltip call site. |
| `asChild`                                 | removed                                                                       |                                          | auto       | TooltipTrigger wraps its first child in Focusable automatically.      |

Removed props: `TooltipContent` (renamed to Tooltip (content)); `asChild` (TooltipTrigger renders its first child directly).

### `search-field`

Automation: codemod: partial. Not yet committed upstream when the table was drafted; added after review. Ticket 07: plain React Aria SearchField with the Tailgrids `state` success variant (D04); codemod mirrors text-field (`invalid/required/disabled/readOnly` → `is*`, `orientation` reported). No v3 release shipped it, so the single pristine hash is the pre-07 development copy.

| Old part      | New part    | Note                             |
| ------------- | ----------- | -------------------------------- |
| `SearchField` | SearchField | same as React Aria's SearchField |

| Old prop                                                   | New prop                                                                     | Value mapping | Automation | Note                                                                                                |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------- | ------------- | ---------- | --------------------------------------------------------------------------------------------------- |
| `invalid/required/disabled/readOnly wrappers, orientation` | React Aria SearchField props (isInvalid, isRequired, isDisabled, isReadOnly) |               | auto       | Maintainer: keep search-field the same as React Aria's search field (D03); layout comes from Field. |

## Not rewritten by `migrate`

### Dropdown Menu and Context Menu root swap

How `migrate` reports it: reported, not rewritten. Components: `dropdown`, `context-menu`.

In v3.1 `DropdownMenuTrigger` is the React Aria `MenuTrigger` root and `DropdownMenu` is the popover + menu content (v3: `DropdownMenu` was the root, `DropdownMenuTrigger` the button, `DropdownMenuContent` the content). `migrate` only reports these three elements. Rewrite each call site as `<DropdownMenuTrigger><Button>…</Button><DropdownMenu>…items…</DropdownMenu></DropdownMenuTrigger>` (the trigger button becomes the first child of the root). `ContextMenu` follows the same shape: `ContextMenuTrigger` is the root, `ContextMenu` the content; `ContextMenuContent`/`ContextMenuPortal` are gone. Checkbox/radio items (`ContextMenuCheckboxItem`, `ContextMenuRadioItem`, `ContextMenuRadioGroup`, and the Dropdown equivalents) become `selectionMode` / `selectedKeys` on the menu with plain items.

### OtpInput default imports

How `migrate` reports it: not detected at call sites. Components: `otp-input`.

v3 `OtpInput` was a default export. `migrate` replaces a pristine copy but does not resolve `import OtpInput from "…/otp-input"` call sites, and the new file exports only the named `InputOTP`, `InputOTPGroup`, `InputOTPSlot`, `InputOTPSeparator` parts. Rewrite those imports and usages by hand. Use `InputOTP`'s own `disabled` prop (a `TextField isDisabled` does not reach it).

### Spinner is not replaced by migrate

How `migrate` reports it: not codemod-ready. Components: `spinner`.

A spinner copy is four files (`spinner/index.tsx`, `default`, `dotted`, `dotted-round`) and `migrate` replaces one file by name, so it neither detects nor replaces the set. Re-add it with `npx @tailgrids/cli@latest add spinner --overwrite` (this also removes the `var(--color-primary-500)` / `var(--border-color-base-100)` references). The `Spinner` call-site API is unchanged.

### Sidebar and chart CSS variables are not written by migrate

How `migrate` reports it: manual. Components: `sidebar`, `chart`.

`migrate` does not write the `--sidebar-*` / `--chart-*` variables into your stylesheet. Run `npx @tailgrids/cli@latest add sidebar --overwrite` (or `chart`) — `add` writes the variables into the main stylesheet and re-running is a no-op — or copy the variable block from the component's docs page. Also: `SidebarTrigger onClick` becomes `onPress`; `ChartContainer` now takes `config` and wraps its own `div` (v3 applied `className` to `ResponsiveContainer`), so review its call sites; `indicator="square"` is now `dot` (manual).

### Combobox

How `migrate` reports it: reported; pristine hash list empty. Components: `combobox`.

The v3.1 source lives at `combobox/combobox.tsx`, which `migrate` cannot address, so every copy is reported as customized; upgrade with `npx @tailgrids/cli@latest add combobox --overwrite`, then port edits. Call sites: `ComboboxInputWrapper` merged into `ComboboxInput` (render `ComboboxTrigger` as a child of `ComboboxInput`); `ComboboxHeader` → `ComboboxLabel` (group heading); the v3 field `ComboboxLabel` → `FieldLabel`; `ComboboxDescription` → `FieldDescription`; `ComboboxErrorMessage` → `FieldError` (all from `field`). Multi-select maps to chip parts; `multi-combobox.tsx` is not detected (it keeps its v3 export names).

### Button Group children must be Buttons

How `migrate` reports it: not detectable. Components: `button-group`.

v3.1 styles `[data-slot]` children of `ButtonGroup`, so raw `<button>` children lose their segment styling. Replace each raw `<button>` child with `Button`. `ButtonGroup` itself has no `variant`/`size` any more: move them onto the child `Button`s (the codemod reports the removed props).

### Tabs orientation, icon and badge

How `migrate` reports it: orientation silent; icon/badge reported. Components: `tabs`.

v3 `direction` becomes `orientation`, but `orientation="horizontal"` keeps the v3 `direction="horizontal"` layout (list beside the panel), the opposite of React Aria's meaning for keyboard navigation. Check each Tabs call site's layout and keyboard behavior. The v3 `icon` / `badge` props on `TabTrigger` move into the trigger's children (manual); `defaultValue` becomes `defaultSelectedKey`, and trigger/panel `value` becomes `id`.

### Calendar and Range Calendar sub-parts are internal

How `migrate` reports it: reported per JSX use. Components: `calendar`, `range-calendar`.

`CalendarHeader`, `NavButton`, `CalendarHeading`, `CalendarGrid*`, `CalendarCell`, `CalendarYearPicker` and the `Range*` equivalents are internal in v3.1. Delete the usages and render `<Calendar />` / `<RangeCalendar />`; custom cells go through `renderCell`, `captionLayout="dropdown"` replaces `CalendarYearPicker`, `numberOfMonths` replaces `visibleDuration`.

### Tooltip and Hover Card structure inversion

How `migrate` reports it: reported, not rewritten. Components: `tooltip`, `hover-card`.

`Tooltip` / `HoverCard` are now `TooltipTrigger` / `HoverCardTrigger` roots with the content as a child popup (`Tooltip` / `HoverCardContent` parts follow the shadcn aria names). The v3 `TooltipContent` / `HoverCardContent` usages are reported; move the trigger element inside the new root and the content inside the popup part.

### Modal and Overlay were removed

How `migrate` reports it: reported; copies not replaced. Components: `modal`, `overlay`.

`Dialog`, `Sheet` and `AlertDialog` compose `DialogTrigger` / `ModalOverlay` themselves, so `Modal`, `OverlayWrapper` and `Backdrop` no longer ship. Replace `Modal` usage with `Dialog` and delete the old copies. Also removed parts: `DialogBody`, `SheetContent`, `SheetBody`, `SheetOverlay`, `DrawerBody`, `PopoverArrow` (the arrow is rendered by `Popover`).

### CSS variable references in customized copies

How `migrate` reports it: manual review.

Arbitrary-value classes such as `bg-(--border-color-base-200)` or `var(--color-primary-500)` in customized copies are not rewritten by `migrate`. Replace them using the CSS-variable table above (e.g. `var(--border)`), and replace hard-coded palette classes (`bg-red-500`, `text-slate-950`, `border-neutral-300`) with the semantic tokens listed in the non-color table.

### Customized component copies

How `migrate` reports it: unresolved at line 1.

A copy that does not match a released v3 file is only token-rewritten and reported at line 1. Re-add the component with `npx @tailgrids/cli@latest add <name> --overwrite` into a clean state, then port your changes onto the v3.1 source (compare the old copy through git).

### Dynamic props and spreads

How `migrate` reports it: unresolved.

Call sites that pass `{...props}`, computed props or dynamic values into a changed prop (e.g. `variant={x}` on Button) cannot be rewritten. Resolve the value's possible cases with the prop tables above and update the source of the value.

## Maintainer decisions

| ID  | Decision                                                                                                       | Answer                                                                                                                                                                                                                                       |
| --- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| D01 | Button variant model: solid vs tinted destructive/success, and the `appearance` prop                           | `variant` = default \| secondary \| success \| destructive \| ghost \| link. Separate `appearance` = default \| outline; `outline` is a softer (tinted, bordered) version of every variant except ghost and link. No `*-soft` variant names. |
| D02 | Button sizes and icon-only                                                                                     | A                                                                                                                                                                                                                                            |
| D03 | DOM-style wrapper props vs React Aria behavior props                                                           | A                                                                                                                                                                                                                                            |
| D04 | Control validation state: `state` / `variant` default\|error\|success                                          | A, extended: `state="error"` → `isInvalid`; `state="success"` → `state="success"` (kept). Controls composed in a Field also read the state from field context when it is not passed directly.                                                |
| D05 | Checkbox / Radio / Toggle: native inputs → React Aria; Toggle→Switch naming                                    | A. Also add `variant` = default \| new on Switch; the `new` design follows the TailAdmin v2.5 Figma states (file IUd57YTLf8z5EuvDo2vlea, node 2499-31600).                                                                                   |
| D06 | Engine changes: Base UI / floating-ui / framer-motion → React Aria; components with no shadcn aria counterpart | Base UI: Avatar, Navigation Menu, Scroll Area. React Aria: Context Menu, Hover Card, Menubar, Tooltip, Drawer (React Aria with framer-motion). Raw: Toast (with Sonner).                                                                     |
| D07 | Custom-state components rebuilt on RAC (Tabs, Accordion, Progress, Link)                                       | A                                                                                                                                                                                                                                            |
| D08 | Alert API and status colors                                                                                    | A extended with B: `status`→`variant` (error→destructive; success/warning/info kept), and `AlertIndicator` / `AlertContent` parts are kept alongside the shadcn structure (icon child, `AlertAction`).                                       |
| D09 | Interactive-state derivations that have no Figma token (hover on solid fills, focus border, link hover)        | A                                                                                                                                                                                                                                            |
| D10 | Badge API and decorative colors                                                                                | A, but the 8 decorative palette colors are dropped. `prefixIcon`/`suffixIcon` renamed `leadingIcon`/`trailingIcon`.                                                                                                                          |
| D11 | Tooltip look                                                                                                   | A                                                                                                                                                                                                                                            |
| D12 | Sidebar / chart variables and old tokens used by chart                                                         | A                                                                                                                                                                                                                                            |
| D13 | Tailgrids-only components and features: keep list                                                              | A                                                                                                                                                                                                                                            |
| D14 | Text color hierarchy: foreground vs muted-foreground vs title                                                  | A                                                                                                                                                                                                                                            |
| D15 | Disabled styling convention                                                                                    | A                                                                                                                                                                                                                                            |
| D16 | Button Group                                                                                                   | A                                                                                                                                                                                                                                            |
| D17 | Overlay composition (Dialog / Sheet / Alert Dialog / Modal / Overlay / Popover)                                | A                                                                                                                                                                                                                                            |
| D18 | Dropdown / context-menu naming inversion                                                                       | A                                                                                                                                                                                                                                            |
