mirror of
https://github.com/cosscom/coss.git
synced 2026-09-14 20:06:50 +08:00
16 lines
965 B
JSON
16 lines
965 B
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "input-group-with-button",
|
|
"type": "registry:example",
|
|
"description": "Input group with button",
|
|
"registryDependencies": ["@coss/input-group", "@coss/button"],
|
|
"files": [
|
|
{
|
|
"path": "registry/default/examples/input-group-with-button.tsx",
|
|
"content": "import { Button } from \"@/registry/default/ui/button\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/registry/default/ui/input-group\"\n\nexport default function InputGroupWithButton() {\n return (\n <InputGroup>\n <InputGroupInput type=\"search\" placeholder=\"Type to search…\" />\n <InputGroupAddon align=\"inline-end\">\n <Button variant=\"secondary\" size=\"xs\">\n Search\n </Button>\n </InputGroupAddon>\n </InputGroup>\n )\n}\n",
|
|
"type": "registry:example"
|
|
}
|
|
],
|
|
"categories": ["input", "input group", "button"]
|
|
}
|