Input

Sizes

Set scales using scale prop like "xs", "sm", "lg" or "xl". The default scale is "base".

Types

All HTML5 types are supported, "number" is adapted.

Disabled

Disable using disabled prop.

Validation

  • Set validation using aria-invalid or aria-invalid={false}

Accessibility

Input uses a native HTML input, it means it is totally accessible on all devices.

API

Input

PropertyTypeRequiredDefaultDescription
childrennodefalse-
disabledbooleanfalse-
scale
enum
false-
Show xstyled properties