mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
13 lines
915 B
JSON
13 lines
915 B
JSON
{
|
|
"name": "input-otp-separator",
|
|
"registryDependencies": [
|
|
"input-otp"
|
|
],
|
|
"files": [
|
|
{
|
|
"name": "input-otp-separator.tsx",
|
|
"content": "\"use client\"\n\nimport React from \"react\"\n\nimport {\n InputOTP,\n InputOTPGroup,\n InputOTPSeparator,\n InputOTPSlot,\n} from \"@/registry/default/ui/input-otp\"\n\nexport default function InputOTPWithSeparator() {\n return (\n <InputOTP maxLength={6}>\n <InputOTPGroup>\n <InputOTPSlot index={0} />\n <InputOTPSlot index={1} />\n </InputOTPGroup>\n <InputOTPSeparator />\n <InputOTPGroup>\n <InputOTPSlot index={2} />\n <InputOTPSlot index={3} />\n </InputOTPGroup>\n <InputOTPSeparator />\n <InputOTPGroup>\n <InputOTPSlot index={4} />\n <InputOTPSlot index={5} />\n </InputOTPGroup>\n </InputOTP>\n )\n}\n"
|
|
}
|
|
],
|
|
"type": "components:example"
|
|
} |