FormSquid

Shadcn form examples

Preview a working form, copy the React component, then customize that spec with AI.

Install with MCP

Connect your assistant to the official shadcn MCP to browse and install forms in your Next.js app. Run pnpm dlx shadcn@latest init in that app first if shadcn is not set up.

1. Add this registry in your app

Merge this entry into your existing components.json registries.

components.jsonjson
1{
2 "registries": {
3 "@formsquid": "https://formsquid.com/r/{name}.json"
4 }
5}

2. Connect your assistant

Merge the server entry into your client configuration, then restart or enable the shadcn server. Run the assistant from your Next.js app’s directory.

.cursor/mcp.jsonjson
1{
2 "mcpServers": {
3 "shadcn": {
4 "command": "npx",
5 "args": [
6 "shadcn@latest",
7 "mcp"
8 ]
9 }
10 }
11}

3. Ask your assistant

text
Install @formsquid/contact-form into this Next.js app and add it to a page. Wire its onSubmit callback to my API in a client component.

The CLI installs the component, Zod schema, packages, and shadcn field components together.