{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "otp-with-spaces", "type": "registry:component", "title": "OTP with Spaces", "description": "A component for inputting OTP codes with spaces", "registryDependencies": [ "input-otp", "label" ], "files": [ { "path": "registry/default/components/input/otp-with-spaces.tsx", "content": "import {\r\n InputOTP,\r\n InputOTPGroup,\r\n InputOTPSlot,\r\n} from '@/registry/default/ui/input-otp'\r\nimport { Label } from '@/registry/default/ui/label'\r\n\r\n// Change the inputLength to the desired number of slots\r\nconst inputLength = 6\r\n\r\nexport default function OtpWithSpaces() {\r\n return (\r\n
\r\n \r\n\r\n \r\n \r\n {Array.from({ length: inputLength }, (_, index) => (\r\n \r\n ))}\r\n \r\n \r\n\r\n

\r\n Built with{' '}\r\n \r\n input-otp\r\n {' '}\r\n

\r\n
\r\n )\r\n}\r\n", "type": "registry:component", "target": "components/otp-with-spaces.tsx" } ] }