DocsGetting Started

Getting Started

AI Agent Setup

Set up shadcn-table with a coding agent

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 both editions of the table: it reads the style in components.json (radix-* or base-*) and installs from the matching path of the hosted registry, /r/radix/ or /r/base/. 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 both:

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

Namespace form, registered once per project: {style} resolves to the project's own style, so the same @st/<item> address works on either base.

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

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

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 radix or base, 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> radix or base. The namespace template reaches it through the project's style (/r/{style}/registry.json). Available once the hosted registry is deployed.

On this page