DocsGetting Started

Getting Started

AI Agent Setup

Point a coding agent at the shadcn-table SKILL.md: it reads your components.json base, installs from the matching registry path and pulls examples.

Ask your agent

Ask your agentInstall shadcn-table in my app: https://www.shadcn-table.com/SKILL.md

The prompt points the agent at /SKILL.md: install, the usage rules, where the option references are, and how to pull any docs example into the project. Every example page also has a "Copy prompt" in its menu for that example.

The skill knows the three bases of the table: it reads the style in components.json (base-*, radix-* or aria-*) and installs from the matching path of the hosted registry, /r/base/, /r/radix/ or /r/aria/. Without a components.json it runs shadcn init first and asks you for the base.

Registry addresses

One path per shadcn base, item names the same on all three:

pnpm dlx shadcn@latest add https://www.shadcn-table.com/r/radix/shadcn-table.json   # Radix UI
pnpm dlx shadcn@latest add https://www.shadcn-table.com/r/base/shadcn-table.json    # Base UI
pnpm dlx shadcn@latest add https://www.shadcn-table.com/r/aria/shadcn-table.json    # React Aria

Namespace form, registered once per project: {style} resolves to the project's own style, so the same @shadcn-table/<item> address works on every base (base-*, radix-* and aria-* styles).

pnpm dlx shadcn@latest registry add @shadcn-table=https://www.shadcn-table.com/r/{style}/{name}.json
pnpm dlx shadcn@latest add @shadcn-table/shadcn-table

GitHub fallback when the site is unreachable: anindosarker/shadcn-table/shadcn-table-base (Base UI), anindosarker/shadcn-table/shadcn-table-radix (Radix UI) and anindosarker/shadcn-table/shadcn-table-aria (React Aria).

Skill

The same file installs as a skill, so the agent knows the table before you ask:

npx skills add anindosarker/shadcn-table

Docs as markdown

Project rules

For CLAUDE.md or AGENTS.md when the skill is not installed:

## shadcn-table

- Data table: components/ui/shadcn-table (from the shadcn registry, edit freely).
- Before changing table options read /llms.mdx/docs/api/table-options/content.md
  on the docs site. Column options: /llms.mdx/docs/api/column-options/content.md.
- `data` and `columns` given to useShadcnTable must be stable
  (useMemo, useState or module scope).
- Reinstall: pnpm dlx shadcn@latest add https://www.shadcn-table.com/r/<base>/shadcn-table.json --overwrite
  (<base> is base, radix or aria, from the style in components.json; replaces local edits in that directory).

MCP

The shadcn MCP server browses the registries listed in components.json, so register the namespace above, then configure your client:

pnpm dlx shadcn@latest mcp init --client claude   # or cursor, vscode, codex, opencode

Registry URL to use: https://www.shadcn-table.com/r/<base>/registry.json, with <base> base, radix or aria. The namespace template reaches it through the project's style (/r/{style}/registry.json). Available once the hosted registry is deployed.

On this page