mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
Squash merge of shadcn-ui/ui main branch into hanzo/ui, bringing in: - [email protected] through [email protected] releases - New apps/v4 directory structure - Registry system improvements and MCP server - Framework support (Vue, Svelte, React Native) - New templates (vite-app, monorepo-next, laravel) - Zod 4 compatibility (scoped override for zod@>4) - Test fixture corrections for alias resolution All 867 merge conflicts resolved preserving Hanzo customizations. 1020/1020 shadcn tests pass.
15 lines
3.0 KiB
JSON
15 lines
3.0 KiB
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "tabs-demo",
|
|
"registryDependencies": [
|
|
"tabs"
|
|
],
|
|
"files": [
|
|
{
|
|
"path": "registry/new-york-v4/examples/tabs-demo.tsx",
|
|
"content": "import { AppWindowIcon, CodeIcon } from \"lucide-react\"\n\nimport { Button } from \"@/registry/new-york-v4/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport { Input } from \"@/registry/new-york-v4/ui/input\"\nimport { Label } from \"@/registry/new-york-v4/ui/label\"\nimport {\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n} from \"@/registry/new-york-v4/ui/tabs\"\n\nexport default function TabsDemo() {\n return (\n <div className=\"flex w-full max-w-sm flex-col gap-6\">\n <Tabs defaultValue=\"account\">\n <TabsList>\n <TabsTrigger value=\"account\">Account</TabsTrigger>\n <TabsTrigger value=\"password\">Password</TabsTrigger>\n </TabsList>\n <TabsContent value=\"account\">\n <Card>\n <CardHeader>\n <CardTitle>Account</CardTitle>\n <CardDescription>\n Make changes to your account here. Click save when you're\n done.\n </CardDescription>\n </CardHeader>\n <CardContent className=\"grid gap-6\">\n <div className=\"grid gap-3\">\n <Label htmlFor=\"tabs-demo-name\">Name</Label>\n <Input id=\"tabs-demo-name\" defaultValue=\"Pedro Duarte\" />\n </div>\n <div className=\"grid gap-3\">\n <Label htmlFor=\"tabs-demo-username\">Username</Label>\n <Input id=\"tabs-demo-username\" defaultValue=\"@peduarte\" />\n </div>\n </CardContent>\n <CardFooter>\n <Button>Save changes</Button>\n </CardFooter>\n </Card>\n </TabsContent>\n <TabsContent value=\"password\">\n <Card>\n <CardHeader>\n <CardTitle>Password</CardTitle>\n <CardDescription>\n Change your password here. After saving, you'll be logged\n out.\n </CardDescription>\n </CardHeader>\n <CardContent className=\"grid gap-6\">\n <div className=\"grid gap-3\">\n <Label htmlFor=\"tabs-demo-current\">Current password</Label>\n <Input id=\"tabs-demo-current\" type=\"password\" />\n </div>\n <div className=\"grid gap-3\">\n <Label htmlFor=\"tabs-demo-new\">New password</Label>\n <Input id=\"tabs-demo-new\" type=\"password\" />\n </div>\n </CardContent>\n <CardFooter>\n <Button>Save password</Button>\n </CardFooter>\n </Card>\n </TabsContent>\n </Tabs>\n </div>\n )\n}\n",
|
|
"type": "registry:example"
|
|
}
|
|
],
|
|
"type": "registry:example"
|
|
} |