/** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * The label for the element */ export type Label = string; /** * The value of the input element, used when submitting an HTML form */ export type Value = string; /** * The name of the input element, used when submitting an HTML form */ export type Name = string; /** * Whether the input is disabled */ export type Disabled = boolean; /** * Temporary text that occupies the text input when it is empty */ export type Placeholder = string; /** * The type of input to render */ export type Type = "color" | "date" | "datetime-local" | "email" | "file" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week"; /** * Hints at the type of data that might be entered by the user while editing the element or its contents */ export type InputMode = "none" | "text" | "search" | "url" | "tel" | "email" | "numeric" | "decimal"; /** * Hide label visually */ export type HideLabel = boolean; /** * Decoration Icon */ export type Icon = string; /** * Wheter the input is invalid */ export type Invalid = boolean; /** * Message to show if the input is invalid */ export type InvalidMessage = string; /** * Help text that gives more context about what a user needs to input */ export type HintMessage = string; /** * Additional css classes attached to the input element */ export type Class = string; /** * TextField buttons allow users to select a single option from a list of mutually exclusive options. */ export interface TextFieldProps { label: Label; value?: Value; name?: Name; disabled?: Disabled; placeholder?: Placeholder; type?: Type; inputMode?: InputMode; hideLabel?: HideLabel; icon?: Icon; invalid?: Invalid; invalidMessage?: InvalidMessage; hint?: HintMessage; className?: Class; }