tuil
ReferenceComponentsForms and controls

NumberInputProps

NumberInputProps component contract.

View rawEdit

Type

export interface NumberInputProps
  extends Omit<
    TextInputProps,
    | "value"
    | "defaultValue"
    | "onValueChange"
    | "validators"
    | "field"
    | "registerWithForm"
  > {
  readonly field?: AdaptedTanStackField<number>;
  readonly validators?: FieldValidators<number>;
  readonly value?: number;
  readonly defaultValue?: number;
  readonly onValueChange?: (value: number) => void | Promise<void>;
  readonly min?: number;
  readonly max?: number;
  readonly step?: number;
}

Members

MemberTypeRequiredDescriptionRelated types
fieldAdaptedTanStackField<number> | undefinedNoThe field member uses the AdaptedTanStackField<number> | undefined contract.AdaptedTanStackField
validatorsFieldValidators<number> | undefinedNoThe validators member uses the FieldValidators<number> | undefined contract.FieldValidators
valuenumber | undefinedNoThe value member uses the number | undefined contract.
defaultValuenumber | undefinedNoThe defaultValue member uses the number | undefined contract.
onValueChange((value: number) => void | Promise<void>) | undefinedNoThe onValueChange member uses the ((value: number) => void | Promise<void>) | undefined contract.
minnumber | undefinedNoThe min member uses the number | undefined contract.
maxnumber | undefinedNoThe max member uses the number | undefined contract.
stepnumber | undefinedNoThe step member uses the number | undefined contract.
placeholderstring | undefinedNoThe placeholder member uses the string | undefined contract.
autoFocusboolean | undefinedNoThe autoFocus member uses the boolean | undefined contract.
variantstring | undefinedNoThe variant member uses the string | undefined contract.
size"sm" | "md" | "lg" | undefinedNoThe size member uses the "sm" | "md" | "lg" | undefined contract.
unstyledboolean | undefinedNoThe unstyled member uses the boolean | undefined contract.
classNamestring | undefinedNoThe className member uses the string | undefined contract.
layoutPartial<Omit<LayoutNodeInput, "id" | "children" | "semantics">> | undefinedNoThe layout member uses the Partial<Omit<LayoutNodeInput, "id" | "children" | "semantics">> | undefined contract.
idstring | undefinedNoThe id member uses the string | undefined contract.
testIdstring | undefinedNoThe testId member uses the string | undefined contract.
roleSemanticRole | undefinedNoThe role member uses the SemanticRole | undefined contract.SemanticRole
labelstring | undefinedNoThe label member uses the string | undefined contract.
descriptionstring | undefinedNoThe description member uses the string | undefined contract.
disabledboolean | undefinedNoThe disabled member uses the boolean | undefined contract.
readOnlyboolean | undefinedNoThe readOnly member uses the boolean | undefined contract.
selectedboolean | undefinedNoThe selected member uses the boolean | undefined contract.
checkedboolean | undefinedNoThe checked member uses the boolean | undefined contract.
expandedboolean | undefinedNoThe expanded member uses the boolean | undefined contract.
valueTextstring | undefinedNoThe valueText member uses the string | undefined contract.
maskstring | undefinedNoThe mask member uses the string | undefined contract.
sessionEditorSession | undefinedNoThe session member uses the EditorSession | undefined contract.EditorSession
editorProviderEditorProvider | undefinedNoThe editorProvider member uses the EditorProvider | undefined contract.EditorProvider
clipboardEditorClipboardAdapter | undefinedNoThe clipboard member uses the EditorClipboardAdapter | undefined contract.
documentTypestring | undefinedNoThe documentType member uses the string | undefined contract.
onSubmit((value: string) => void | Promise<void>) | undefinedNoThe onSubmit member uses the ((value: string) => void | Promise<void>) | undefined contract.
onBlur(() => void | Promise<void>) | undefinedNoThe onBlur member uses the (() => void | Promise<void>) | undefined contract.
focusOrdernumber | undefinedNoThe focusOrder member uses the number | undefined contract.
maxLengthnumber | undefinedNoThe maxLength member uses the number | undefined contract.
onArrowUp(() => void | Promise<void>) | undefinedNoThe onArrowUp member uses the (() => void | Promise<void>) | undefined contract.
onArrowDown(() => void | Promise<void>) | undefinedNoThe onArrowDown member uses the (() => void | Promise<void>) | undefined contract.

Source

View the secondary source reference

On this page