mirror of
https://github.com/cosscom/coss.git
synced 2026-09-14 20:06:50 +08:00
16 lines
772 B
JSON
16 lines
772 B
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "input-with-button",
|
|
"type": "registry:example",
|
|
"description": "Input with button",
|
|
"registryDependencies": ["@coss/input", "@coss/button"],
|
|
"files": [
|
|
{
|
|
"path": "registry/default/examples/input-with-button.tsx",
|
|
"content": "import { Button } from \"@/registry/default/ui/button\"\nimport { Input } from \"@/registry/default/ui/input\"\n\nexport default function InputWithButton() {\n return (\n <div className=\"flex gap-2\">\n <Input type=\"email\" placeholder=\"you@example.com\" aria-label=\"Email\" />\n <Button variant=\"outline\">Send</Button>\n </div>\n )\n}\n",
|
|
"type": "registry:example"
|
|
}
|
|
],
|
|
"categories": ["input", "button"]
|
|
}
|