generated:catalog.entry.input-otp.title
generated:catalog.entry.input-otp.description
@xngui/components/input-otp@xngui/components/input-otpchrome:demo.section
chrome:demo.preview
import { Component } from '@angular/core';
import { XForm } from '@xngui/components/form';
import { XFormField } from '@xngui/components/form-field';
import { XInputOtp } from '@xngui/components/input-otp';
@Component({
selector: 'app-example',
imports: [XForm, XFormField, XInputOtp],
templateUrl: './input-otp.component.html',
})
export class ExampleComponent {}
chrome:demo.events.title
chrome:demo.events.empty
chrome:demo.api.title
x-input-otp
chrome:demo.api.col.property
chrome:demo.api.col.type
chrome:demo.api.col.default
chrome:demo.api.col.description
lengthnumber6Number of digit cells.
sizeXSize—Visual size tier — falls back to XConfigService when unset.
densityXDensity—Spacing offsets — orthogonal to `size`; falls back to XConfigService when unset.
lookXFormLook—Field chrome — outline, fill, flat, or none; falls back to XForm then XConfigService.
disabledbooleanfalsePrevents interaction and sets `aria-disabled` on the digit inputs.
readonlybooleanfalseValue-only input — user cannot change when true.
invalidbooleanfalseMarks the control invalid for styling and ARIA.
requiredbooleanfalseMarks the control as required for validation and ARIA.
namestring''Native form control `name` attribute.
controlIdstring—Native `id` on the first digit; falls back to `name`, then a generated id.
ariaLabelstring—Accessible name for the digit group when no visible label is provided.