{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/popover-02","type":"registry:component","title":"Popover 2","description":"A dimensions popover with input fields for width, max width, height, and max height settings","dependencies":["lucide-react"],"registryDependencies":["button","input","label","popover"],"files":[{"path":"src/registry/new-york/components/popover/popover-02.tsx","content":"import { PencilRulerIcon } from 'lucide-react'\n\nimport { Button } from '@/registry/new-york/ui/button'\nimport { Input } from '@/registry/new-york/ui/input'\nimport { Label } from '@/registry/new-york/ui/label'\nimport {\n  Popover,\n  PopoverContent,\n  PopoverTrigger,\n  PopoverHeader,\n  PopoverTitle,\n  PopoverDescription\n} from '@/registry/new-york/ui/popover'\n\nconst PopoverDimensionsDemo = () => {\n  return (\n    <Popover>\n      <PopoverTrigger asChild>\n        <Button variant='outline' size='icon'>\n          <PencilRulerIcon />\n          <span className='sr-only'>Dimensions</span>\n        </Button>\n      </PopoverTrigger>\n      <PopoverContent className='w-80'>\n        <div className='grid gap-4'>\n          <PopoverHeader className='gap-2'>\n            <PopoverTitle className='leading-none'>Dimensions</PopoverTitle>\n            <PopoverDescription>Set the dimensions for the layer.</PopoverDescription>\n          </PopoverHeader>\n          <div className='grid gap-2'>\n            <div className='grid grid-cols-3 items-center gap-4'>\n              <Label htmlFor='width'>Width</Label>\n              <Input id='width' defaultValue='100%' className='col-span-2 h-8' />\n            </div>\n            <div className='grid grid-cols-3 items-center gap-4'>\n              <Label htmlFor='maxWidth'>Max. width</Label>\n              <Input id='maxWidth' defaultValue='300px' className='col-span-2 h-8' />\n            </div>\n            <div className='grid grid-cols-3 items-center gap-4'>\n              <Label htmlFor='height'>Height</Label>\n              <Input id='height' defaultValue='25px' className='col-span-2 h-8' />\n            </div>\n            <div className='grid grid-cols-3 items-center gap-4'>\n              <Label htmlFor='maxHeight'>Max. height</Label>\n              <Input id='maxHeight' defaultValue='none' className='col-span-2 h-8' />\n            </div>\n          </div>\n        </div>\n      </PopoverContent>\n    </Popover>\n  )\n}\n\nexport default PopoverDimensionsDemo\n","type":"registry:component","target":"components/shadcn-studio/popover/popover-02.tsx"}]}