{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/input-mask-02","type":"registry:component","title":"Input Mask 2","description":"A time input field with HH:MM:SS mask formatting for precise time entry","dependencies":["use-mask-input"],"registryDependencies":["input","label"],"files":[{"path":"src/registry/new-york/components/input-mask/input-mask-02.tsx","content":"'use client'\n\nimport { useId } from 'react'\n\nimport { withMask } from 'use-mask-input'\n\nimport { Input } from '@/registry/new-york/ui/input'\nimport { Label } from '@/registry/new-york/ui/label'\n\nconst InputTimeDemo = () => {\n  const id = useId()\n\n  return (\n    <div className='w-full max-w-xs space-y-2'>\n      <Label htmlFor={id}>Input time</Label>\n      <Input\n        id={id}\n        type='text'\n        placeholder='00:00:00'\n        ref={withMask('datetime', {\n          placeholder: '_',\n          inputFormat: 'HH:MM:ss',\n          outputFormat: 'HH:MM:ss',\n          showMaskOnHover: false\n        })}\n      />\n      <p className='text-muted-foreground text-xs'>\n        Built with{' '}\n        <a\n          className='hover:text-foreground underline'\n          href='https://github.com/eduardoborges/use-mask-input'\n          target='_blank'\n          rel='noopener noreferrer'\n        >\n          use-mask-input\n        </a>\n      </p>\n    </div>\n  )\n}\n\nexport default InputTimeDemo\n","type":"registry:component","target":"components/shadcn-studio/input-mask/input-mask-02.tsx"}]}