Getting started

InstallUsageGuidelinesContributeRelease

Foundation

Navigation

Forms

ButtonButton GroupCheckboxCheckbox GroupClipboard ButtonComboboxEditable DescriptionEditable HeadingFile InputForm FieldIcon ButtonMulti SelectNumber InputRadioSearch InputSelectSliderSlug InputSwitchTag InputTextareaText Input

Text Input

Text input allows user to enter text.

#

#

#

Input should be disabled, when input shouldn't be allowed to be interacted with.

#

Compared to a disabled input, read only input is usually used for values that user might want to copy to clipboard.

#

Invalid input indicates that value isn't what the system expects.

#

TextInput accepts a type prop, which accepts the same values as type attribute of an input tag.

#

#

  • Use sentence case for placeholder text.
  • End placeholder text with three dots.

#

Inherits margin props.

NameDefaultDescription
isDisabled

boolean

Determines whether input is disabled and doesn't respond to any user interactions.

isReadOnly

boolean

Determines whether input can be interacted with, but value can't be changed.

isInvalid

boolean

Indicates that input value is invalid.

isRequired

boolean

Indicates that input is required to fill out.

type

"text" | "password" | "email" | "date" | "datetime-local" | "number" | "tel" | "time" | "url" | "week"

Input type.

value

string

Input value.

width"xs""xs" | "sm" | "md" | "lg" | "auto" | "100%"

Input width.

On this page

  • Example
  • Usage
  • Disabled
  • Read only
  • Invalid
  • Other types
  • Guidelines
  • Content
  • Props