# Components {#c6}

> Chapter 6 of the App Design Guide 3.0.0. Index: https://www.designguide.dev/llms.txt

A component is a ready-made part of an interface, such as a button, a field, or a sheet. Pick it by what the person needs to do.

## Choose the component by intent {#s6-1}

Find the need in the first column. The next columns give the component on a phone and on a wide screen (840 and up), or "Same". The last column gives the reason or the rule.

[Chapter 5](https://www.designguide.dev/md/05-adapt-across-sizes.md) defines the size classes. A Medium window uses the phone answer unless chapter 5 says otherwise.

**Actions and choices.**

| The person needs to | Use on a phone | On a wide screen | Reason |
| --- | --- | --- | --- |
| Run an action | Button | Same. A minor action is an icon button ([6.2](https://www.designguide.dev/r/label-every-main-action-with-text.md)). | A button names the result. |
| Go to another place | Link or row with a chevron | Same | A link moves and changes no data. |
| Turn a setting on or off, with an immediate effect | Switch | Same | It applies at once, with no Save. |
| Pick 1 of 2 to 5 options | Radio group | Same | All options stay in view. |
| Change a compact filter among 2 to 4 options | Segmented control | Same | One row and one press. |
| Pick several from a short list | Checkbox group | Same | Each option stands alone. |
| Pick 1 of 6 to 9 options | Select menu (see [6.25](https://www.designguide.dev/r/choose-the-control-by-the-option-count.md)) | Same | A menu saves space. |
| Pick from 10 or more options | Searchable list (see [6.25](https://www.designguide.dev/r/choose-the-control-by-the-option-count.md)) | Combo box (see [6.25](https://www.designguide.dev/r/choose-the-control-by-the-option-count.md)) | Typing is faster than scrolling. |
| Set a common value fast | Chips | Same | One press sets a typical value. |
| Pick a date | Platform date picker (see [6.22](https://www.designguide.dev/r/pick-a-date-with-the-right-control.md)) | Typed field with calendar ([6.22](https://www.designguide.dev/r/pick-a-date-with-the-right-control.md)) | A phone has a picker. A keyboard types faster. |
| Pick a number in a range | Slider with a visible value (see [6.24](https://www.designguide.dev/r/show-the-value-of-a-slider.md)) | Same | The number shows while they drag. |
| Reorder items | Drag handles plus Move up and Move down ([15.15](https://www.designguide.dev/r/give-every-drag-a-non-drag-path.md)) | Same | A drag needs a path without dragging. |

**Entering data.**

| The person needs to | Use on a phone | On a wide screen | Reason |
| --- | --- | --- | --- |
| Enter a short line of text | Text field | Same | One line and one label. |
| Enter a long text | Text area | Same | The whole text stays in view. |
| Enter a number | Number field with a digit keypad | Number field | The right keys open on a phone. |
| Enter a one-time code | Code field with autofill | Same | Autofill saves typing. |
| Change a small count by 1 | Stepper (see [6.26](https://www.designguide.dev/r/use-a-stepper-for-a-small-count.md)) | Same | The value shows, in steps of 1. |
| Enter a password | Password field with a show control (see [6.23](https://www.designguide.dev/r/add-a-show-control-to-a-password-field.md)) | Same | The person can check the input. |
| Search a list | Search field above the list | Same | People look at the top first. |
| Add files | Choose files button | Choose files plus a drop zone ([13.10](https://www.designguide.dev/r/offer-a-button-first-then-a-drop-zone.md)) | The button works everywhere. |
| Fix one bad field | Error message under the field | Same | The message sits at the problem. |
| Fix several errors in a long form | Banner with the list, plus a message per field | Same | The person sees the full list. |

**Messages and overlays.**

| The person needs to | Use on a phone | On a wide screen | Reason |
| --- | --- | --- | --- |
| See that an action worked | Toast | Same | It confirms and then leaves. |
| Undo a reversible action | Toast with an Undo action | Same | No confirm step. |
| See a state that stays | Banner | Same | It stays until the state ends. |
| Choose among a few options without leaving | Sheet | Popover at the control (see [6.28](https://www.designguide.dev/r/anchor-a-popover-to-its-control.md)) | The screen stays in view. |
| Do a short task of 1 or 2 fields | Sheet | Side panel or popover | The person keeps the context. |
| See more detail of an item | Pushed page or sheet | Detail pane beside the list (see [6.29](https://www.designguide.dev/r/show-item-detail-beside-the-list.md)) | The list stays in view. |
| Confirm an irreversible action | Dialog with verb buttons | Same | The block matches the risk. |
| Do a long task | Full page with a progress bar | Same | A long task needs its own page. |
| Wait for content | Skeleton in the shape of the content | Same | The layout does not jump. |
| Follow a task in progress | Progress bar with words | Same | It shows how much is left. |

**Navigation and display.**

| The person needs to | Use on a phone | On a wide screen | Reason |
| --- | --- | --- | --- |
| Move between main areas | Tab bar of 3 to 5 items | Rail or sidebar, by window size (see [5.10](https://www.designguide.dev/r/move-navigation-from-bar-to-rail-to-sidebar.md)) | The areas stay in view. |
| Move between views of one object | Tabs | Same | Each view shares one space. |
| Filter the list below | Segmented control or chips | Same | A filter changes the list, not the place. |
| Go deeper into one object | Pushed page with a back arrow | Pushed page, or detail pane | Back returns to the same spot. |
| Move through many areas of a tool | Drawer, or a list of areas | Sidebar (see [5.10](https://www.designguide.dev/r/move-navigation-from-bar-to-rail-to-sidebar.md)) | A sidebar holds a long list. |
| Choose from 3 or more actions for one item | Sheet of actions | Menu at the control (see [6.27](https://www.designguide.dev/r/group-menu-items-by-job.md)) | A list of verbs fits both. |
| Run a command on one item | Row menu button, swipe shortcut | Hover action plus a context menu (see [12.13](https://www.designguide.dev/r/fit-the-menu-to-the-item.md)) | Hover shows it at the row. |
| Compare rows of data | Table | Same | Aligned columns allow a scan. |
| Read one number with its change | KPI tile | Same | A label, a number, a state word. |
| Know the state of one item | Status word with an icon | Same | Color alone fails. |
| Follow a known sequence of 3 to 5 steps | Step indicator with Step N of M | Same | The person knows how far to go. |
| Learn what an icon does | Label text, or an accessible name | Label text, or a tooltip ([12.6](https://www.designguide.dev/r/name-every-icon-only-button-with-a-tooltip.md)) | A tooltip holds no required text. |

**Everyday needs.**

| The person needs to | Use on a phone | On a wide screen | Rule |
| --- | --- | --- | --- |
| Refresh content | Pull down, plus a Refresh button | Refresh button in the toolbar, and a key | [6.31](https://www.designguide.dev/r/refresh-with-a-button-and-a-pull.md) |
| Select many rows | Checkbox on every row | Checkbox, plus Shift and Ctrl | [12.26](https://www.designguide.dev/r/select-rows-with-a-checkbox-or-with-modifiers.md) |
| Edit a value in place | Open a detail screen | Edit the cell or the title in place | [11.7](https://www.designguide.dev/r/edit-table-cells-in-place.md) |
| Share or send | Sheet of share options | Menu at the button, and a Copy link button | [6.30](https://www.designguide.dev/r/offer-share-as-a-sheet-or-a-menu.md) |
| Pick a time | List of times in a sheet | Typed field with a list of times | [6.22](https://www.designguide.dev/r/pick-a-date-with-the-right-control.md) |
| Close or dismiss | Close icon at the start, and Back | Close icon and Esc | [4.8](https://www.designguide.dev/r/keep-back-and-close-in-the-same-place.md) |
| Search and filter | Search icon, filter sheet | Search field and filter bar | [10.23](https://www.designguide.dev/r/collapse-filters-into-one-button-on-a-phone.md) |
| See a count that changed | Badge on the tab | Badge on the sidebar item | [4.4](https://www.designguide.dev/r/show-a-live-value-on-one-tab.md) |
| Copy a value | Copy button with a toast | Copy button, or select and Ctrl C | [13.11](https://www.designguide.dev/r/make-copy-and-paste-useful.md) |
| Disable a button | Decide by the case | Same | [6.3](https://www.designguide.dev/r/decide-when-a-button-is-disabled.md) |

## Buttons {#s6-2}

### 6.1 Start a label with a verb  {#start-a-label-with-a-verb}

Default

**Rule:** Start every button label with a verb that names the result, such as Book table or Save changes.

**Why:** The label tells the person what happens before they act. "OK" and "Submit" do not.  **When not:** Done, Close, Next, and Back can stand alone.

- Use a bare verb, such as Save, when the screen names the object.
- Write 1 to 3 words in sentence case, no end period.
- Name the result, not the gesture.

**Picture:** Do: Both labels start with a verb and name the result. Don't: Submit and Yes name nothing.

### 6.2 Label every main action with text  {#label-every-main-action-with-text}

Default · Adapts

**Rule:** Add a word to the icon of every button that starts a main action.

**Wide screen:** On a wide screen, a minor icon button stands alone with a tooltip, and a main action keeps its word. (Triggers: Hover, Fine pointer)

**Why:** Icons are easy to misread. A word removes the guess and names the control for screen readers.  **When not:** A familiar icon, such as close or back, can stand alone for a minor control, with an accessible name.

- Name the tooltip after the action ([Rule 12.8](https://www.designguide.dev/r/time-the-tooltip.md) sets its timing).

**Picture:** Do: The icon and the word name the action. Don't: An icon alone leaves the person to guess. Size pair (Phone, 375; Window, 1280): The phone labels both actions. The window adds a tooltip.

**See:** [12.8 Time the tooltip](https://www.designguide.dev/r/time-the-tooltip.md)

### 6.3 Decide when a button is disabled  {#decide-when-a-button-is-disabled}

Default

**Rule:** In a form with 3 or more fields, keep the submit button enabled and show every error after the person submits.

**Why:** A disabled button hides what is missing. An enabled button that shows errors tells what to fix.  **When not:** A short form of 1 or 2 fields, all in view, can keep the button disabled until valid.

- Scroll to the first error and focus it.
- Keep the typed input in place.
- A required consent checkbox can keep the button disabled until checked.

| The button | State | What the person sees |
| --- | --- | --- |
| Submit in a form of 3 or more fields | Enabled | Every error under its field after the press |
| Submit in a form of 1 or 2 fields, all in view | Disabled until the input is valid | Helper text names what is missing |
| Next on a step that needs one answer (see [7.1](https://www.designguide.dev/r/ask-one-question-per-sensitive-screen.md)) | Disabled until the person answers | The question stays in view |
| Confirm on a sheet that needs a pick (see [6.15](https://www.designguide.dev/r/never-preselect-an-irreversible-option.md)) | Disabled until the person picks | Text says "Pick one option to continue." |
| An action with nothing selected (see [8.8](https://www.designguide.dev/r/explain-a-disabled-control-in-visible-text.md)) | Disabled | Visible text says what to select |
| An action that needs the network, while offline (see [8.27](https://www.designguide.dev/r/show-the-connection-state-in-one-fixed-place.md)) | Disabled | A banner says the connection is down |

**Picture:** Do: The button is active. The error says what to fix. Don't: A disabled button gives no clue about what is wrong.

**See:** [7.1 Ask one question per sensitive screen](https://www.designguide.dev/r/ask-one-question-per-sensitive-screen.md), [6.15 Never preselect an irreversible option](https://www.designguide.dev/r/never-preselect-an-irreversible-option.md), [8.8 Explain a disabled control in visible text](https://www.designguide.dev/r/explain-a-disabled-control-in-visible-text.md), [8.27 Show the connection state in one fixed place](https://www.designguide.dev/r/show-the-connection-state-in-one-fixed-place.md)

## Fields {#s6-3}

### 6.4 Show a visible label on every field  {#show-a-visible-label-on-every-field}

Hard

**Rule:** Put a visible label above every field, and never use the placeholder as the label.

**Why:** A placeholder disappears when the person types and fails for many screen readers.

- Mark optional fields, not required ones.
- Write helper text under the field for format or reason.
- Write the placeholder as an example ([6.5](https://www.designguide.dev/r/use-the-placeholder-for-an-example.md)).

**Picture:** Do: The label stays. The helper text explains why. Don't: The placeholder is the only label. It vanishes when the person types.

**See:** [6.5 Use the placeholder for an example](https://www.designguide.dev/r/use-the-placeholder-for-an-example.md)

### 6.5 Use the placeholder for an example  {#use-the-placeholder-for-an-example}

Default

**Rule:** Write a placeholder as an example of a valid value, not as an instruction.

**Why:** An example shows the format in one look. An instruction repeats the label.

**Picture:** Do: The placeholder shows a valid value. Don't: The placeholder repeats the label.

### 6.6 Open the right keyboard  {#open-the-right-keyboard}

Default · Adapts

**Rule:** Set the input type and the Enter behavior of each field so the right keyboard, autofill, and Enter action work.

**Wide screen:** On a wide screen, Tab moves between fields, Enter submits, and the browser autofill stays on. (Triggers: Keyboard)

**Why:** The right keys save steps and prevent typos.

- Use a number pad for phone numbers and codes.
- Show "Next" on the Enter key until the last field.
- Turn on autofill for names, addresses, and codes.

| Field kind | Keyboard | Extra |
| --- | --- | --- |
| Email | Address keys | No auto-capitals |
| Phone, code | Number pad | Autofill the code |
| Name, address | Usual keys | Capitalize words |
| Search | Usual keys | Search as the Enter action |
| Comment | Usual keys | Send as the Enter action |

**Picture:** Size pair (Phone, 375; Window, 1280): The phone opens a number pad. The window adds Tab and Enter.

### 6.7 Set field text to 16 px everywhere  {#set-field-text-to-16-px-everywhere}

Default

**Rule:** Set the text of every field to 16 px on every screen (home rule: [15.4](https://www.designguide.dev/r/set-a-readable-minimum-text-size.md)).

**Why:** A phone browser zooms the page when a field has smaller text, and the layout jumps.

- Use 16 px for typed text and labels in a field.
- Use 44 px as the field height for touch ([15.1](https://www.designguide.dev/r/size-targets-by-input-type.md)).
- A dense table cell for a fine pointer uses 14 px.

**See:** [15.4 Set a readable minimum text size](https://www.designguide.dev/r/set-a-readable-minimum-text-size.md), [15.1 Size targets by input type](https://www.designguide.dev/r/size-targets-by-input-type.md)

## Selection controls {#s6-4}

### 6.8 Use a switch for an immediate effect  {#use-a-switch-for-an-immediate-effect}

Default

**Rule:** Use a switch for a setting that takes effect at once, and a checkbox when the person saves later.

**Why:** A switch says "this is on now." A switch in a form that needs Save breaks that promise.

**Picture:** Do: Each switch applies the moment it moves. Don't: A switch plus Save: the person cannot tell when it applies.

### 6.9 Pick one save model for each settings group  {#pick-one-save-model-for-each-settings-group}

Default

**Rule:** Apply a switch at once, hold other settings for Save, and never mix both in one group.

**Why:** A person must know if a change is live. A mixed group hides which change is saved.  **When not:** A separate group on the same screen may use the other model if a heading names it.

- A switch changes the setting at once and shows a short saved state.
- Save and Cancel hold the draft until Save ([7.9](https://www.designguide.dev/r/warn-before-discarding-entered-work.md)).
- Restore the old value if an instant change fails ([8.16](https://www.designguide.dev/r/undo-a-failed-instant-change-with-a-message.md)).

**Picture:** Do: Each group has one model. The headings name them. Don't: One group mixes both. The person cannot tell what Save covers.

**See:** [7.9 Warn before discarding entered work](https://www.designguide.dev/r/warn-before-discarding-entered-work.md), [8.16 Undo a failed instant change with a message](https://www.designguide.dev/r/undo-a-failed-instant-change-with-a-message.md)

### 6.10 Use radio for one, checkbox for many  {#use-radio-for-one-checkbox-for-many}

Default

**Rule:** Use radio buttons to pick 1 of 2 to 5 options, and checkboxes to pick any number.

**Why:** The control shape tells people if they can pick one or many.

- Show a legend above the group.
- Do not preselect a paid or irreversible option.

**Picture:** Do: Radio buttons for one choice. Don't: Checkboxes say many picks, not one choice.

### 6.11 Keep chip labels to 1 or 2 words  {#keep-chip-labels-to-1-or-2-words}

Default

**Rule:** Use chips for filters and quick values, keep each label to 1 or 2 words, and fill the selected chip.

**Why:** Short chips fit on one row and scan fast. Long chips wrap and hide the selection.

- Use no more than 5 chips in one row.
- Use tabs for views of one object ([6.18](https://www.designguide.dev/r/use-tabs-for-views-segments-for-filters.md)).

**Picture:** Do: Short labels. The selected chip has a fill. Don't: Long labels wrap and crowd the row.

**See:** [6.18 Use tabs for views, segments for filters](https://www.designguide.dev/r/use-tabs-for-views-segments-for-filters.md)

## Rows {#s6-5}

### 6.12 Build every row from one anatomy  {#build-every-row-from-one-anatomy}

Default · Adapts

**Rule:** Build every row from one anatomy: icon, bold title, helper text, and a trailing value, chevron, or hover actions.

**Wide screen:** On a wide screen, reveal row actions on hover and on keyboard focus, and keep one visible menu button. (Triggers: Hover, Fine pointer, Keyboard)

**Why:** The eye learns one shape and scans it fast. A new shape for each section slows every scan.

- Use the same slots in every list of the product.
- Leave a slot empty, and do not move the others.

**Picture:** Do: Every row has the same slots in the same order. Don't: Each row has a different shape. Size pair (Phone, 375; Window, 1280): The phone shows a menu in every row. The window adds hover actions.

### 6.13 Show the cost on the row  {#show-the-cost-on-the-row}

Default

**Rule:** Show a fee or a cost on the row, before the person acts, and not first on the confirm screen.

**Why:** People choose by what they see. A cost that appears later feels like a trap ([9.13](https://www.designguide.dev/r/state-cost-fee-and-permanence-before-the-action.md)).

- Write the exact time, such as Today, 7:00 PM, beside the cost.
- Write the cost in the trailing slot.

**Picture:** Do: The cost shows on the row. Don't: The row shows no cost.

**See:** [9.13 State cost, fee, and permanence before the action](https://www.designguide.dev/r/state-cost-fee-and-permanence-before-the-action.md)

## Sheets and dialogs {#s6-6}

### 6.14 Title a sheet with the choice  {#title-a-sheet-with-the-choice}

Default

**Rule:** Title a sheet, a panel, or a dialog with the choice it asks for, as a question or a verb phrase.

**Why:** The title tells the person what to decide. "Options" and "More" tell nothing.

- Phrase the title from the person's side.
- Keep the question under 8 words.
- Use short answers as options.

**Picture:** Do: The title is a question about the choice. Don't: "Options" does not say what to choose.

### 6.15 Never preselect an irreversible option  {#never-preselect-an-irreversible-option}

Hard

**Rule:** Never preselect an irreversible option, and keep the button disabled until the person picks (see [6.3](https://www.designguide.dev/r/decide-when-a-button-is-disabled.md)).

**Why:** A safe default speeds the common case. A preselected irreversible option risks data loss.

- Preselect a safe option only when every option is safe.
- Name the irreversible option in plain words.

**Picture:** Do: Nothing is selected. The button is disabled, and text says why. Don't: The irreversible option is preselected. One press loses the file.

**See:** [6.3 Decide when a button is disabled](https://www.designguide.dev/r/decide-when-a-button-is-disabled.md)

## Toasts and banners {#s6-7}

### 6.16 Show one toast at a time  {#show-one-toast-at-a-time}

Default · Adapts

**Rule:** Show one toast at a time, for at least 5 seconds, and at least 10 seconds with an action.

**Wide screen:** On a wide screen, put the toast in one window corner, and pause its timer while the pointer rests on it. (Triggers: Hover, Fine pointer)

**Why:** A toast is a short acknowledgment that people need time to read. A stack hides the urgent one.

- Never auto-dismiss a message that holds an action the person needs.
- Show an error in place ([8.6](https://www.designguide.dev/r/name-the-cause-and-the-fix-in-place.md)), not in a toast.
- Keep a toast at a fixed place, with at most one action.

| Toast text | On screen (seconds) |
| --- | ---: |
| Up to 10 words | 5 or more |
| 11 to 20 words | 10 or more |
| Any toast with an action | 10 or more |
| Over 20 words | Use a banner |

**Picture:** Do: One toast with one action. Don't: A second toast stacks under the first one. Size pair (Phone, 375; Window, 1280): The phone shows the toast at the bottom. The window uses a corner.

**See:** [8.6 Name the cause and the fix, in place](https://www.designguide.dev/r/name-the-cause-and-the-fix-in-place.md)

### 6.17 Use a banner for a state that stays  {#use-a-banner-for-a-state-that-stays}

Default · Adapts

**Rule:** Use a banner for a state that stays until it ends, placed where it applies, one per area.

**Wide screen:** On a wide screen, cap the banner width and place it at the top of the content pane, not the window. (Triggers: Width 840+)

**Why:** A banner stays on screen and does not block. A saved file is a short event for a toast.

- Put a page-wide banner under the header.
- Put a section banner next to that section.
- Add a dismiss control only when the state can come back later.

**Picture:** Do: One banner for a state that stays. Don't: A banner for a one-time event. A toast fits better. Size pair (Phone, 375; Window, 1280): The phone banner spans the screen. The window banner has a capped width.

## Tabs, tooltips, and help {#s6-8}

### 6.18 Use tabs for views, segments for filters  {#use-tabs-for-views-segments-for-filters}

Default

**Rule:** Use tabs to switch views of one object, and a segmented control to filter or change a range.

**Why:** Tabs change what the screen shows. A filter changes which items the same view lists.

**Picture:** Do: Tabs switch views. Segments switch the range. Don't: The shapes are swapped, so the roles are unclear.

### 6.19 Never put required information in a tooltip  {#never-put-required-information-in-a-tooltip}

Hard

**Rule:** Use a tooltip only for a short, optional hint, and put any information the person needs on the screen.

**Why:** A tooltip needs a hover or a long press. Touch screens have no hover.

- Keep a tooltip to 75 characters.
- Never put a link, a form, or an error in a tooltip.
- Name a minor icon button in the tooltip.

**Picture:** Do: The password rule shows as text on the screen. Don't: The password rule hides in a tooltip. Touch screens never show it.

## Search and recents {#s6-9}

### 6.20 Name what a search field searches  {#name-what-a-search-field-searches}

Default

**Rule:** Write the searched content in the placeholder, such as Search files.

**Why:** A named field sets the scope in one glance. A clear control removes text in one press.

- Add a clear control once the person types.
- Keep the field in one place ([4.12](https://www.designguide.dev/r/put-search-above-what-it-searches.md)).

**Picture:** Do: The placeholder names the scope. A clear control appears. Don't: "Search" has no scope and no clear control.

**See:** [4.12 Put search above what it searches](https://www.designguide.dev/r/put-search-above-what-it-searches.md)

### 6.21 Show recents at a stable place  {#show-recents-at-a-stable-place}

Default

**Rule:** Show recent items in a fixed place and order, and do not reorder them while the person reaches for one.

**Why:** A list that moves while the person reaches for it causes a press on the wrong item.

- Show the last 3 items under a Recent heading.
- Update the list only after the screen closes.

**Picture:** Do: Recents have a heading and a fixed place. Don't: The recents swap places, and the next press lands wrong.

## Input controls and selection actions {#s6-10}

### 6.22 Pick a date with the right control  {#pick-a-date-with-the-right-control}

Default · Adapts

**Rule:** Use the platform date control for a date on a phone, so the person never types a format.

**Wide screen:** On a wide screen, use a typed date field with a calendar popover, and accept typed dates in common formats. (Triggers: Fine pointer, Keyboard)

**Why:** A picker blocks dates that do not exist and spares the person from typing a format.

- Show the weekday with the date ([9.6](https://www.designguide.dev/r/write-exact-dates-not-ranges.md)).
- Pick a time from a list, such as every 15 minutes.
- Disable dates that cannot be chosen, and say why.

**Picture:** Do: One field shows the chosen date and opens a picker. Don't: 3 free number fields allow a date that does not exist. Size pair (Phone, 375; Window, 1280): The phone opens the platform picker. The window takes a typed date and a calendar.

**See:** [9.6 Write exact dates, not ranges](https://www.designguide.dev/r/write-exact-dates-not-ranges.md)

### 6.23 Add a show control to a password field  {#add-a-show-control-to-a-password-field}

Default

**Rule:** Add a show control to every password field, and let the person paste a password with the keyboard or the menu.

**Why:** A person who cannot check a typed password makes more mistakes. A blocked paste pushes weak passwords.

- Hide the password by default.
- Name the control Show password.

**Picture:** Do: A Show password control sits under the field. Don't: Dots only, with no way to check what was typed.

### 6.24 Show the value of a slider  {#show-the-value-of-a-slider}

Default

**Rule:** Show the current value beside a slider, and add a field for the exact value.

**Why:** A person who drags a bare track cannot hit an exact number.

- Update the value while the person drags.
- Let the keyboard change the value in small steps.

**Picture:** Do: The track shows a position, with the value and a field below. Don't: The track shows a position and no value.

### 6.25 Choose the control by the option count  {#choose-the-control-by-the-option-count}

Default · Adapts

**Rule:** Use radio buttons for 5 or fewer options, a select menu for 6 to 9, and search for 10 or more.

**Wide screen:** On a wide screen, use a combo box for 10 or more options: type to filter, and press Enter to pick. (Triggers: Keyboard, Fine pointer)

**Why:** Radio buttons keep a short list in view. A menu saves space. Typing beats scrolling for 10 or more.

- Show the current value in the closed menu.
- Show the match count under the field: 2 of 14 match.
- On a phone, open a full-screen list with a search field.

**Picture:** Do: One field opens a menu of 7 options. Don't: 7 radio rows push the rest of the screen away. Size pair (Phone, 375; Window, 1280): The phone opens a full-screen search list. The window filters under the field.

### 6.26 Use a stepper for a small count  {#use-a-stepper-for-a-small-count}

Default

**Rule:** Use a stepper with 2 buttons for a small whole number, and show the value between them.

**Why:** A stepper gives exact steps of 1. The value in view shows the result of each press.

- Keep the range small, such as 1 to 10.
- Name each button with a word.

**Picture:** Do: The value sits between the Fewer and More buttons. Don't: The 2 buttons show no value.

## Menus and overlays on a wide screen {#s6-11}

### 6.27 Group menu items by job  {#group-menu-items-by-job}

Default · Adapts

**Rule:** Show the actions of one item as a sheet of 3 to 12 verb items, grouped by job.

**Wide screen:** On a wide screen, show the same verbs as a menu at the control, with a shortcut hint at the row end. (Triggers: Fine pointer, Keyboard)

**Why:** A menu lets the eye scan one list of verbs. Groups show the job of each item.

- Use a thin separator between groups, not a heading for each group.
- Open a submenu from a row with a chevron, one level deep.
- Gray out an item that does not apply. Do not hide it.

**Picture:** Do: The verbs sit in 2 groups, and Delete is apart. Don't: One flat group puts Delete beside Rename. Size pair (Phone, 375; Window, 1280): The phone shows a sheet. The window shows a menu with shortcut hints.

### 6.28 Anchor a popover to its control  {#anchor-a-popover-to-its-control}

Default · Adapts

**Rule:** Open a short choice in a sheet.

**Wide screen:** On a wide screen, anchor a popover to its control, and close it on Esc or an outside press. (Triggers: Fine pointer, Keyboard)

**Why:** A phone has little room, so a sheet holds a short choice. A popover keeps the person near the control.  **When not:** A long form needs more room than a sheet or a popover. Use a page or a dialog.

- Open the popover under its control.
- Keep it to a few short fields or options, and one button.
- Return focus to the control when the popover closes ([15.13](https://www.designguide.dev/r/place-focus-on-purpose.md)).

**Picture:** Do: A short choice sits under the control that opened it. Don't: A 4-field form crowds the popover. Use a page or a dialog. Size pair (Phone, 375; Window, 1280): The phone opens a sheet. The window opens a popover under Move.

**See:** [15.13 Place focus on purpose](https://www.designguide.dev/r/place-focus-on-purpose.md)

### 6.29 Show item detail beside the list  {#show-item-detail-beside-the-list}

Default · Adapts

**Rule:** Show the detail of an item on a pushed page, and keep the list one Back away.

**Wide screen:** On a wide screen, show the detail beside the list, and keep the open row marked. (Triggers: Width 840+, Dense data)

**Why:** A phone has room for one task at a time. A pushed page gives the detail the full screen.

- Side panel: any panel beside the content.
- Inspector: a side panel for the properties of the selection.
- Detail pane: the pane that shows the selected item.

**Picture:** Size pair (Phone, 375; Window, 1280): The phone opens the detail on its own page. The window uses a detail pane.

## Share and refresh {#s6-12}

### 6.30 Offer Share as a sheet or a menu  {#offer-share-as-a-sheet-or-a-menu}

Default · Adapts

**Rule:** Offer Share as a sheet of share options, and put Copy link in the first row.

**Wide screen:** On a wide screen, open a menu at the Share button, and add a visible Copy link button. (Triggers: Fine pointer)

**Why:** People share to many places. One sheet lists them all, and the first row serves the common case.

- Name the button with the object, such as Share file.
- Keep each option to a verb and a place.
- Confirm a copied link with a toast ([6.16](https://www.designguide.dev/r/show-one-toast-at-a-time.md)).

**Picture:** Size pair (Phone, 375; Window, 1280): The phone opens a sheet. The window opens a menu.

**See:** [6.16 Show one toast at a time](https://www.designguide.dev/r/show-one-toast-at-a-time.md)

### 6.31 Refresh with a button and a pull  {#refresh-with-a-button-and-a-pull}

Default · Adapts

**Rule:** Offer a Refresh button as well as a pull down, and show the time of the last update.

**Wide screen:** On a wide screen, put a Refresh button in the toolbar, and give it a key such as Ctrl R. (Triggers: Keyboard, Fine pointer)

**Why:** A pull down is a gesture some people cannot make. A button gives everyone the same path.

- Keep the list in place while it refreshes.
- Show a progress cue near the button, not over the list.
- Update the time of the last update when the data arrives.

**Picture:** Size pair (Phone, 375; Window, 1280): The phone shows Refresh and the update time. The window adds a key.
