Choice input

Also referred to as: Chip, Tag, Pill, Inline choice field, Capsule, Bubble, Single selection, Multi-selection

Overview

  • Available sinceYokohama
  • A11Y WCAG 2.1 AA

When to use

This component is used in the Input screen for selecting single or multiple options from predefined choices.

When not to use

This component is not intended for use on other screens or in different flows.


Anatomy

Choice Input iOS

iOS

Android Choice Input

Android

  1. Label: This is the title of the input, displayed above the choice field, explaining what the user should select in that field.
  2. Chip: Displays an option that the user can select.
  3. Selected chip: Indicates the selection that the user makes.

Variants

The choice input has 2 variants: Single select and multi-select.

Multi-select

Use the multi-select choice input when the user can choose multiple answers at once.

Multi select variant
  1. Label: This is the title of the input, displayed above the choice field, explaining what the user should select in that field.
  2. Chip: Displays an option that the user can select. In the Multi-select choice, it is marked with a "+" sign on the chip.
  3. Selected chip: Indicates the selection that the user makes. In the Multi-select choice, it is marked with a "V" sign on the chip.

Configurations

Learn how to customize the choice input component by configuring the available properties.

1. Pre-selected chip

You can configure choice input to have a default pre-selected choice. The user can deselect the pre-selected chip by tapping on it or, for single-select choice inputs, selecting a different chip.

Pre-selected chip

2. Maximum number of chips

The default number of chips is 8. Once there are more than 8 chips, a "See all" button will appear, directing the user to a new screen to view all the options. You can adjust this number to any value that suits your needs.

Maximum number of chips with a "see all" button added

A "See All" button is added

Tapping the "See All" button will take the user to a new screen where they can see all the options.

Tapping the "See All" button will take the user to a new screen where they can see all the options.

Once the user makes a selection on the new screen, the button’s microcopy that directs them to the screen will change to “See selected”:

See selected button on choice input

If it’s a multi-select choice input, the button will display the number of selected options:

Multiple number of selected options on choice input

3. Actions menu

Add a actions menu button next to the choice input to give users the ability to perform various input actions. These actions include adding a comment, adding one or more attachments, and navigate to other screens.

Actions menu configured on a choice input

4. Description

Add a description to the choice input to briefly explain the purpose of this selection:

Description configured on a choice input

5. Descriptive element

Add a descriptive element above the choice input to provide users with guidance or instructions about this selection:

Descriptive element combined with the choice input

6. Comments

Add a comment section below the choice input to allow users to provide additional feedback or thoughts about their selection:

A comment and "see attachments" link added under the choice input

Design recommendations

Limit the chip text to a maximum of 2 lines to prevent truncation:

Choice input with chip text limited to a maximum of 2 lines
Do

The chip text should be limited to a maximum of 2 lines

Choice input with chip text that is longer than 2 lines and gets truncated
Don’t

A chip with more than 2 lines of text will be truncated

Avoid configuring the “None” option in a multi-select choice input, as it can lead to situations where the user selects “None” along with other options, which may cause confusion:

Multi-select choice input configured without the "none" option
Do

Multi-select choice input shouldn’t be configured with the “None” option

Multi-select choice input configured with the "none" option
Don’t

Configuring the “None” option in a multi-select Choice Input can result in conflicting selections that may cause confusion

Configure dependent choices (where the content of the lower input depends on the selection in the upper one) using a section. The section will group the two inputs together while maintaining enough space between them to preserve a clear hierarchy and distinguish the two inputs:

Two choice inputs combined in a section
Do

Using a section minimizes the space between the two fields and automatically adjusts their corner radius for a seamless look

Two choice inputs combined using MergeWithNextUIElement
Don’t

Configuring dependent choices without proper spacing can confuse users and cause unrelated fields to appear merged


Alignment and positioning

Align the input choice to the center of the screen, maintaining a 16 px margin from the screen edges and the Nav Bar.

Alignment and positioning of the choice input in the input form screen

States

Choice input has 6 states: Default, Disabled, Read-only, Loaded, Long value and Minimum value.


Responsive behaviors

Learn how choice input responds to changes in screen size or orientation.

Landscape

The choice input stretches in landscape orientation as the screen becomes wider.

Choice input stretches when the view port becomes wider

Interactions

Learn how choice input responds when a user interacts with it.

Tapping on a chip

When a user taps on a selected chip, it will deselect it:

Choice input

In a single-select choice input, tapping on a different chip will deselect the current choice and select the new one:

Choice Input

In a multi-select choice input, tapping on a different chip will add the new chip to the current selection:

Multi select choice input