# OtpField (@salmonui/inputs/otp-field)

> The OtpField component of @salmonui/inputs/otp-field: One-time code input: one native &lt;input autocomplete="one-time-code"> with maxLength, drawn as cells from the value and the selection, so SMS autofill, paste and screen readers see a single field. ref is the input; unknown props go to the input, className / style to the root.

Canonical: https://salmonui.dev/docs/reference/inputs/otp-field/OtpField

```ts
import { OtpField } from '@salmonui/inputs/otp-field';
```

Entry index: https://salmonui.dev/docs/reference/inputs/otp-field (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/otp-field.md).

## Reference

Kind: component

```ts
function OtpField(props: OtpFieldProps): ReactNode;
```

One-time code input: one native `<input
autocomplete="one-time-code">` with `maxLength`, drawn as cells from the
value and the selection, so SMS autofill, paste and screen readers see a
single field. `ref` is the input; unknown props go to the input,
`className` / `style` to the root.

Props: [`OtpFieldProps`](https://salmonui.dev/docs/reference/inputs/otp-field/OtpFieldProps) (its members are the props)
