snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
25
apps/v4/examples/aria/input-otp-disabled.tsx
Normal file
25
apps/v4/examples/aria/input-otp-disabled.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Field, FieldLabel } from "@/styles/aria-nova/ui/field"
|
||||
import {
|
||||
InputOTP,
|
||||
InputOTPGroup,
|
||||
InputOTPSeparator,
|
||||
InputOTPSlot,
|
||||
} from "@/styles/aria-nova/ui/input-otp"
|
||||
|
||||
export function InputOTPDisabled() {
|
||||
return (
|
||||
<InputOTP id="disabled" maxLength={6} disabled value="123456">
|
||||
<InputOTPGroup>
|
||||
<InputOTPSlot index={0} />
|
||||
<InputOTPSlot index={1} />
|
||||
<InputOTPSlot index={2} />
|
||||
</InputOTPGroup>
|
||||
<InputOTPSeparator />
|
||||
<InputOTPGroup>
|
||||
<InputOTPSlot index={3} />
|
||||
<InputOTPSlot index={4} />
|
||||
<InputOTPSlot index={5} />
|
||||
</InputOTPGroup>
|
||||
</InputOTP>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user