--- title: OTP desc: OTP (One-Time Password) component for inputting verification codes. It's usually 4 to 6 digits long and is used for two-factor authentication (2FA) or passwordless login. source: https://raw.githubusercontent.com/saadeghi/daisyui/refs/heads/master/packages/daisyui/src/components/otp.css layout: components classnames: component: - class: otp desc: For the container label modifier: - class: otp-joined desc: Connects the character boxes together size: - class: otp-xs desc: Extra small size - class: otp-sm desc: Small size - class: otp-md desc: Medium size default: true - class: otp-lg desc: Large size - class: otp-xl desc: Extra large size color: - class: otp-neutral desc: neutral color - class: otp-primary desc: primary color - class: otp-secondary desc: secondary color - class: otp-accent desc: accent color - class: otp-success desc: success color - class: otp-info desc: info color - class: otp-warning desc: warning color - class: otp-error desc: error color --- ### ~OTP #### Make sure the number of spans matches the maxlength and the pattern of the input field. In this example, we have 4 spans for a 4-digit OTP. ```html ``` ### ~OTP with 6 digits ```html ``` ### ~OTP joined #### Connects the character boxes together ```html ``` ### ~OTP with different sizes
```html ``` ### ~OTP with different colors
```html ```