# Components

<!-- https://learn-ui.com/chapters/components -->

A toast, a drawer, a command menu, a modal, and a theme switch. None of them is hard to describe and all of them are hard to get right. This chapter reads the write-ups of the people who built well-known versions of each, because each of them wrote down every decision, and the decisions turn out to be small, numerous, and deliberate.

## 5 sections

1.  [A toast that stacks](https://learn-ui.com/chapters/components/toast)
2.  [A drawer that follows the finger](https://learn-ui.com/chapters/components/drawer)
3.  [A command menu with pages](https://learn-ui.com/chapters/components/command-menu)
4.  [A modal that respects focus](https://learn-ui.com/chapters/components/modal)
5.  [Dark mode without the flash](https://learn-ui.com/chapters/components/dark-mode)
