interface TextBoxProps {
    "aria-label"?: string;
    autoComplete?: TextBoxAutoCompleteValue;
    autoFocus?: boolean;
    defaultValue?: string;
    disabled?: boolean;
    form?: string;
    inputMode?:
        | "search"
        | "none"
        | "text"
        | "tel"
        | "url"
        | "email"
        | "numeric"
        | "decimal";
    list?: string;
    max?: string;
    maxLength?: number;
    min?: string;
    minLength?: number;
    name?: string;
    onChange?: (value: string, e: ChangeEvent<HTMLInputElement>) => void;
    onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
    pattern?: string;
    placeholder?: string;
    ref?: Ref<HTMLInputElement>;
    required?: boolean;
    size?: "medium" | "small" | "large";
    textTransform?: "uppercase";
    title?: string;
    type?:
        | "search"
        | "text"
        | "tel"
        | "url"
        | "email"
        | "date"
        | "password"
        | "datetime-local";
    value?: string;
}

Properties

"aria-label"?: string
autoFocus?: boolean
defaultValue?: string
disabled?: boolean
form?: string
inputMode?:
    | "search"
    | "none"
    | "text"
    | "tel"
    | "url"
    | "email"
    | "numeric"
    | "decimal"

Hints at the type of data that might be entered by the user while editing the element or its contents

list?: string

Used for datalists. May be removed in the future. We still need to evaluate if this is a good way to do it.

max?: string

Don't use this. It is intended for internal use for DateInput.

maxLength?: number
min?: string

Don't use this. It is intended for internal use for DateInput.

minLength?: number
name?: string
onChange?: (value: string, e: ChangeEvent<HTMLInputElement>) => void
onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void
pattern?: string
placeholder?: string

Try to avoid using placeholders as labels:

	<TextBoxLabel label="Betreff">
<TextBox />
</TextBoxLabel>
ref?: Ref<HTMLInputElement>

For internal use only.

required?: boolean
size?: "medium" | "small" | "large"
textTransform?: "uppercase"
title?: string
type?:
    | "search"
    | "text"
    | "tel"
    | "url"
    | "email"
    | "date"
    | "password"
    | "datetime-local"
  • Don't use date or datetime-local. Use the DateInput component instead.
value?: string

value and onChange are optional because we want to be able to use the control in an uncontrolled manner as well (for example, in forms)