CoreInput otp
InputOTP API
Every prop of the 4 parts InputOTP exports, generated from the package manifest.
import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from '@oceanic-hub/brand-system'- Layer
- core — shadcn-derived primitives.
- Exports
- InputOTP · InputOTPGroup · InputOTPSeparator · InputOTPSlot
- Contract
- packages/brand-system/src/components/input-otp.contract.test-d.ts
- Demos
- 7 on the InputOTP page — rendered live, hydrated
- Source
- packages/brand-system/src/components/input-otp.tsx
Generated from manifest/component-manifest.json, so it cannot drift from the source. For what InputOTP is for, how it composes and what it looks like, see InputOTP.
InputOTP
Inherited from input-otp — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
InputOTPGroup
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
InputOTPSeparator
A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
InputOTPSlot
React.ComponentPropsWithoutRef<'div'> & { index: number }
Prop
Type
Also accepts everything from React.ComponentPropsWithoutRef<'div'>.