OtpFieldView.label
property · packages/mixins-ui/src/otpField.ts:31
readonly label: stringThe field's accessible name: what the code is for.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/otpField.ts:29
interface OtpFieldView<Message> {
readonly label: string
readonly length?: number | undefined
readonly value: string
readonly onChange: (value: string) => NoInfer<Message>
readonly pattern?: keyof typeof PATTERNS | undefined
readonly groups?: ReadonlyArray<number> | undefined
readonly disabled?: boolean | undefined
readonly style?: NamedStyle<typeof OtpFieldSlots> | undefined
readonly mixins?: MixinList<Message> | undefined
}OtpFieldView.labelproperty · packages/mixins-ui/src/otpField.ts:31
readonly label: stringThe field's accessible name: what the code is for.
OtpFieldView.lengthproperty · packages/mixins-ui/src/otpField.ts:33
readonly length?: number | undefinedHow many characters the code has. Default 6.
OtpFieldView.valueproperty · packages/mixins-ui/src/otpField.ts:34
readonly value: stringOtpFieldView.onChangeproperty · packages/mixins-ui/src/otpField.ts:36
readonly onChange: (value: string) => NoInfer<Message>The Message for what was typed, already kept to the pattern and length.
OtpFieldView.patternproperty · packages/mixins-ui/src/otpField.ts:38
readonly pattern?: keyof typeof PATTERNS | undefinedWhich characters a cell takes; default digits.
OtpFieldView.groupsproperty · packages/mixins-ui/src/otpField.ts:40
readonly groups?: ReadonlyArray<number> | undefinedThe cells in runs, a separator between them: [3, 3]. Default one run.
OtpFieldView.disabledproperty · packages/mixins-ui/src/otpField.ts:41
readonly disabled?: boolean | undefinedOtpFieldView.styleproperty · packages/mixins-ui/src/otpField.ts:43
readonly style?: NamedStyle<typeof OtpFieldSlots> | undefinedA style of OtpFieldSlots, for the field's look.
OtpFieldView.mixinsproperty · packages/mixins-ui/src/otpField.ts:45
readonly mixins?: MixinList<Message> | undefinedMixins beside the style.