# Mail

A whole mail client: folders and labels that are saved searches, conversations you can select, archive and undo, a compose window docked in the corner, single-key shortcuts, and on a phone one pane at a time with the reply box above the on-screen keyboard.

## Guidelines shown here

- [Navigation](/ui/guidelines/patterns/navigation/index.md)

  The folders and labels are a NavList under a heading for each group, each place a link, so it opens in a new tab too; the folder on screen is the one marked.

- [Search](/ui/guidelines/patterns/search/index.md)

  Search for a word, then empty the box: what you searched waits there, newest first, each a link to its results, and × or Shift+Delete forgets one.

- [Principles](/ui/guidelines/principles/index.md)

  Archiving asks nothing and offers Undo, no action waits for hover, and the list says whether it is empty, filtered out or failed to refresh.

- [Destructive actions](/ui/guidelines/patterns/destructive-actions/index.md)

  Archive or delete a conversation: it moves at once, and the toast says where it went with Undo. In Trash, Delete forever… is the one step that asks, and it sits last in More actions.

- [Feedback](/ui/guidelines/patterns/feedback/index.md)

  Archive, delete, mark or send a message, and a toast says so, with Undo. Press Refresh: the first check fails, and says so above the list it kept, with Retry.

- [Loading, empty & error](/ui/guidelines/patterns/loading-empty-and-error/index.md)

  Open an empty folder for what it holds and how mail gets there, search for a word no mail has for the filter's own empty state, and scroll to the end for Load more.

- [Actions & buttons](/ui/guidelines/patterns/actions-and-buttons/index.md)

  Compose is the one primary button. The toolbars are ghost icon buttons with tooltips, and the rare actions (Forward, Copy link) wait behind More actions.

- [Toolbars](/ui/guidelines/patterns/toolbars/index.md)

  The thread's toolbar is one Tab stop, walked with the arrow keys. Star keeps the far end past a spacer, and More actions holds Forward and Copy link, below whatever the bar has no room for.

- [Overlays](/ui/guidelines/patterns/overlays/index.md)

  On a phone the folders slide in as a Sheet. Labels and More actions are menus, ? opens a Dialog, and Delete forever… a ConfirmDialog. Compose docks in a corner and blocks nothing.

- [Forms](/ui/guidelines/patterns/forms/index.md)

  Compose with nobody in To and press Send: the message lands under the field. Close it with words in it, and the message waits in Drafts.

- [Color](/ui/guidelines/foundations/color/index.md)

  Each label takes the colour the mailbox stores for it: on a conversation in the list, above the open one, and where a label is picked, the sidebar, the rail's Labels menu and the conversation's Labels menu.

- [Layout & spacing](/ui/guidelines/foundations/layout-and-spacing/index.md)

  Narrow the window. The sidebar folds to a rail below xl, and below md one pane shows at a time, with the folders in a Sheet.

- [Density](/ui/guidelines/foundations/density/index.md)

  A row is a sender, a subject and one line of snippet. Press Touch in the bar above, and the toolbars and the checkboxes make room for a thumb with no layout of their own.

- [Icons](/ui/guidelines/foundations/icons/index.md)

  The toolbars are Lucide icons alone, each with an aria-label and a tooltip, and unread and starred are said in words too. Compose, Send and Delete forever… keep their words, except in the narrow rail, where every place is an icon with a tooltip.

- [Motion](/ui/guidelines/foundations/motion/index.md)

  Send a reply: the thread scrolls down to it, or jumps there under reduced motion. The folders' Sheet slides in from its edge, and Refresh spins while it checks.

- [Desktop & pointer](/ui/guidelines/platforms/desktop-and-pointer/index.md)

  Press ? for every shortcut, and turn them off in the same dialog. A toolbar button's tooltip prints its key, so e for Archive is learned where Archive is. j and k walk the list.

- [Touch & mobile](/ui/guidelines/platforms/touch-and-mobile/index.md)

  On a phone a long press selects a conversation, Compose sits under the thumb, and the reply box rides above the on-screen keyboard.

- [Accessibility](/ui/guidelines/content/accessibility/index.md)

  Put the mouse away: Tab reaches every row and control, each icon button is named, and the single-key shortcuts can be turned off.

- [Writing](/ui/guidelines/content/writing/index.md)

  Toasts name the thing and what happened (“3 conversations archived”), each empty folder says what would be in it, and Delete forever… asks with the count.

## Components

- [ui · ConfirmDialog](/ui/storybook/?path=/docs/ui-confirmdialog--docs)
- [ui · EmptyState](/ui/storybook/?path=/docs/ui-emptystate--docs)
- [ui · usePagedAppend](/ui/storybook/?path=/docs/ui-hooks-usepagedappend--docs)
- [ui · useSelection](/ui/storybook/?path=/docs/ui-hooks-useselection--docs)
- [ui · useVisualViewportInsets](/ui/storybook/?path=/docs/ui-hooks-usevisualviewportinsets--docs)
- [ui · LoadFailure](/ui/storybook/?path=/docs/ui-loadfailure--docs)
- [ui · LoadMoreFooter](/ui/storybook/?path=/docs/ui-loadmorefooter--docs)
- [ui · Avatar](/ui/storybook/?path=/docs/ui-primitives-avatar--docs)
- [ui · Badge](/ui/storybook/?path=/docs/ui-primitives-badge--docs)
- [ui · Button](/ui/storybook/?path=/docs/ui-primitives-button--docs)
- [ui · Dialog](/ui/storybook/?path=/docs/ui-primitives-dialog--docs)
- [ui · DropdownMenu](/ui/storybook/?path=/docs/ui-primitives-dropdownmenu--docs)
- [ui · InfoPopover](/ui/storybook/?path=/docs/ui-primitives-infopopover--docs)
- [ui · Input](/ui/storybook/?path=/docs/ui-primitives-input--docs)
- [ui · Kbd](/ui/storybook/?path=/docs/ui-primitives-kbd--docs)
- [ui · Label](/ui/storybook/?path=/docs/ui-primitives-label--docs)
- [ui · List](/ui/storybook/?path=/docs/ui-primitives-list--docs)
- [ui · NavList](/ui/storybook/?path=/docs/ui-primitives-navlist--docs)
- [ui · Pane](/ui/storybook/?path=/docs/ui-primitives-pane--docs)
- [ui · Sheet](/ui/storybook/?path=/docs/ui-primitives-sheet--docs)
- [ui · Switch](/ui/storybook/?path=/docs/ui-primitives-switch--docs)
- [ui · Timestamp](/ui/storybook/?path=/docs/ui-primitives-timestamp--docs)
- [ui · Toaster](/ui/storybook/?path=/docs/ui-primitives-toaster--docs)
- [ui · Tooltip](/ui/storybook/?path=/docs/ui-primitives-tooltip--docs)
- [ui · QueryBox](/ui/storybook/?path=/docs/ui-querybox--docs)
- [ui · SelectionBar](/ui/storybook/?path=/docs/ui-selectionbar--docs)
- [ui · Toolbar](/ui/storybook/?path=/docs/ui-toolbar--docs)
- [ui-code · Content](/ui/storybook/?path=/docs/ui-code-content--docs)
- [ui-codemirror · MarkdownEditor](/ui/storybook/?path=/docs/ui-codemirror-markdowneditor--docs)
- [ui-markdown · Markdown](/ui/storybook/?path=/docs/ui-markdown-markdown--docs)
