Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

PinInput

PinInput is a component used to capture pin codes or OTP (One-Time Password) inputs.

Source@yamada-ui/pin-input

Theming

The PinInput is a multi part component.

export const PinInput: ComponentMultiStyle<"PinInput"> = mergeMultiStyle(
Input,
{
baseStyle: {
container: {
gap: "sm",
},
field: {
textAlign: "center",
},
},
sizes: {
xs: {
field: {
boxSize: "6",
fontSize: "xs",
rounded: "sm",
},
},
sm: {
field: {
boxSize: "8",
fontSize: "sm",
rounded: "md",
},
},
md: {
field: {
boxSize: "10",
fontSize: "md",
rounded: "md",
},
},
lg: {
field: {
boxSize: "12",
fontSize: "lg",
rounded: "md",
},
},
},
variants: {
unstyled: {
field: {
h: "auto",
},
},
},
},
)({ omit: ["addon", "sizes"] })
Copied!

Edit this page on GitHub

PreviousPasswordInputNextPhoneInput