BetaBeta pública — Consulta las notas de lanzamiento
Documentación

Input OTP

A one-time password input with individual character slots.

Paquete
@solidiom/input-otp
Versión
0.0.1-next.0
Estado
stable

Generado a partir del código fuente público del paquete.

API

Groupcomponente

                        Group(props: InputOTPGroupProps): Element
                      

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

InputOTPGroupPropsinterfaz

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

InputOTPRootPropsinterfaz

Propiedades

class?
string
defaultValue?
string — Default value (uncontrolled).
disabled?
boolean — Whether the input is disabled.
maxLength
number — Total number of characters.
onComplete?
(value: string) => void — Called when all slots are filled.
onValueChange?
(value: string) => void — Called when value changes.
pattern?
string — Regex pattern for allowed characters (e.g. "^[0-9]*$").
style?
string | CSSProperties
value?
Accessor<string | undefined> — Controlled value.

hijos: Element

Ver código fuente

InputOTPSlotPropsinterfaz

Propiedades

class?
string
index
number — Zero-based index of this slot.
style?
string | CSSProperties

Ver código fuente

Rootcomponente

                        Root(props: InputOTPRootProps): Element
                      

Propiedades

class?
string
defaultValue?
string — Default value (uncontrolled).
disabled?
boolean — Whether the input is disabled.
maxLength
number — Total number of characters.
onComplete?
(value: string) => void — Called when all slots are filled.
onValueChange?
(value: string) => void — Called when value changes.
pattern?
string — Regex pattern for allowed characters (e.g. "^[0-9]*$").
style?
string | CSSProperties
value?
Accessor<string | undefined> — Controlled value.

hijos: Element

Ver código fuente

Slotcomponente

                        Slot(props: InputOTPSlotProps): Element
                      

Propiedades

class?
string
index
number — Zero-based index of this slot.
style?
string | CSSProperties

Ver código fuente