# OTPInput Read the complete [LICENSE](https://snowui.dev/LICENSE) for the installed version before use. Enter a configurable 4–8 digit one-time code with full-code paste, SMS autofill, and native form submission and reset. We are building SnowUI components into interfaces people can use directly in AI conversations. Conversational UI is still in development; this page demonstrates website usage. Supported chat platforms and component versions will be announced after verification. Generating and using SnowUI interfaces inside AI conversations is completely free. It is not a project, uses no project or developer-seat quota, and requires no SnowUI registration, activation, or paid proof. Package: `@snowui-design-system/components`. Import: `import { OTPInput } from '@snowui-design-system/components';`. Source fingerprint: `a800db933ce9888dcf68fa537038572d4b75d530db089e735105cbaa59fe2236`. ## Usage choices Enter a numeric one-time code already sent by an application or identity provider. This component handles entry; the application sends and verifies codes and owns any countdown. - Defaults to 6 digits; supports 4, 5, 6, 7, or 8. Ordinary entry filters non-digits and limits length. Paste is validated strictly as described below. - `oncomplete` runs only when user entry produces a new complete value. Initialization, external assignment, and repeated synchronization of the same complete value do not trigger it. - `name`, `form`, `required`, `disabled`, `readonly`, and `autocomplete="one-time-code"` are applied to the real input. ## Read as needed - [API](https://snowui.dev/llms/en/components/otp-input/api.md): Public Props and defaults - [Types and states](https://snowui.dev/llms/en/components/otp-input/types.md): Public type declarations and binding rules - [Full reference](https://snowui.dev/llms/en/components/otp-input/reference.md): Composition and interaction boundaries - [Styles](https://snowui.dev/llms/en/components/otp-input/styles.md): Registered public overrides - [Examples](https://snowui.dev/llms/en/components/otp-input/examples.md): Code and preview links - [Quick start](https://snowui.dev/llms/components/otp-input/quick-start.svelte): Minimal component usage - [Changelog](https://snowui.dev/llms/en/components/otp-input/changelog.md): Version history reviewed in English [Design guide](https://snowui.dev/llms/en/design-system.md) · [Styling guide](https://snowui.dev/llms/en/styling.md)