Input: Text Field

The Text Field lets fans enter information, with contextual feedback along the way.

Input: Text Field/Hero

 

Component checklist

Design

Up to date

Flutter

Up to date

Widgetbook

-

Overview

The Text Field lets a fan enter information and gives feedback as they go. It carries an optional title, the text input, and optional subtext and validation text beneath.

Usage

States

Default

Used when the text field is not currently in focus.

Focussed

Used when the text field is currently in focus.

Validation

Used when the input data is not valid.

Read Only

Used when the input data cannot be changed and is in a read-only state.

Overflowing Text

In the event of text overflowing a text input, the default device/browser behaviour should apply.

Design

Appearance

Input: Text Field/Appearance

Item

Usage

1

Light Mode

2

Dark Mode

Anatomy

Input: Text Field/Anatomy

Item

Usage

1

Title Text (Optional)

2

Text Input

3

Subtext Text (Optional)

4

Validation Text (Optional)

5

Validation Warning Icon (Optional)

Variants

Input: Text Field/Variants

Item

Usage

1

Default

2

Focused

3

Validation

4

Read Only