@pittorica/input-otp-react
v0.26.3
Published
The `InputOTP` component.
Readme
@pittorica/input-otp-react
The InputOTP component.
Installation
npm install @pittorica/input-otp-reactUsage
import { InputOTP } from '@pittorica/input-otp-react';
function MyForm() {
return (
<InputOTP maxLength={6}>
<InputOTP.Group>
<InputOTP.Slot index={0} />
<InputOTP.Slot index={1} />
<InputOTP.Slot index={2} />
</InputOTP.Group>
<InputOTP.Separator />
<InputOTP.Group>
<InputOTP.Slot index={3} />
<InputOTP.Slot index={4} />
<InputOTP.Slot index={5} />
</InputOTP.Group>
</InputOTP>
);
}License
This project is licensed under the MIT License.
Copyright (c) 2025 Davide Di Criscito
For the full details, see the LICENSE file.
