跳到正文
Linasan UI

InputOTP 验证码输入

逐格输入的验证码,基于 input-otp。

已输入:—

安装

pnpm dlx shadcn@latest add https://docs.linasan.cn/r/input-otp.json

第一次装本站的组件前先在项目里执行一次 shadcn init,详见 安装。

用法

import { InputOTP, InputOTPGroup, InputOTPSlot } from '@/components/ui/input-otp';

本页目录