BETA This playbook is in BETA, we think it’s good enough to be useful right now, but there are gaps that need filling – your feedback will help us to improve it.

When to use this pattern

Use the text input component when you need to let users enter text that is no longer than a single line, such as their first or last name.

When not to use this pattern

Do not use the text input component if you need to let users enter longer answers that might span multiple lines. In this case, you should use the “textarea” component.

How it works

For an optional input that might not seem necessary to the user, you must explain why we are collecting this information using the ‘hint’ field setting:

A badge number helps us process the request faster

This applies to all optional input field types.

If you are creating a “textarea” field rather than a standard text input, make sure you include the maximum character or word limit in the field’s placeholder text.

Last reviewed: October 2, 2023 by Kailani

Next review due: April 2, 2024

Back to top