Files
cosscom__coss/apps/ui/public/r/particle-in-1.json
Volnei Munhoz d5a915e6d0 add biome
2025-11-13 19:19:31 -03:00

20 lines
1.5 KiB
JSON

{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "particle-in-1",
"type": "registry:block",
"description": "Input with start text and end tooltip",
"registryDependencies": [
"@coss/button",
"@coss/input-group",
"@coss/popover"
],
"files": [
{
"path": "registry/default/particles/particle-in-1.tsx",
"content": "import { InfoIcon } from \"lucide-react\"\n\nimport { Button } from \"@/registry/default/ui/button\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/registry/default/ui/input-group\"\nimport {\n Popover,\n PopoverPopup,\n PopoverTrigger,\n} from \"@/registry/default/ui/popover\"\n\nexport default function Particle() {\n return (\n <InputGroup>\n <InputGroupInput\n type=\"text\"\n className=\"*:[input]:ps-1!\"\n placeholder=\"coss.com\"\n aria-label=\"Set your URL\"\n />\n <InputGroupAddon>https://</InputGroupAddon>\n <InputGroupAddon align=\"inline-end\">\n <Popover openOnHover>\n <PopoverTrigger\n render={\n <Button variant=\"ghost\" size=\"icon-xs\" aria-label=\"More info\" />\n }\n >\n <InfoIcon />\n </PopoverTrigger>\n <PopoverPopup tooltipStyle side=\"top\">\n <p>The URL of your website</p>\n </PopoverPopup>\n </Popover>\n </InputGroupAddon>\n </InputGroup>\n )\n}\n",
"type": "registry:block"
}
],
"categories": ["input", "input group", "button", "popover"]
}