# Notes

A notebook: markdown notes beside their preview, diagrams drawn from mermaid fences, files embedded by name, and a / that offers blocks and a # that offers the tags already in use.

## Guidelines shown here

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

  More actions → Delete note: the note goes at once, and Undo in the toast puts it back where it was. Nothing asks first.

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

  Filter for a word no note has: No notes match, with Clear filter. Delete every note, and the empty notebook says what a note is, with New note.

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

  New note is the list's one action. Delete note waits in More actions, last, after a separator.

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

  Below lg there is room for the editor or the preview, not both. Below md the list and the note take turns.

- [Typography](/ui/guidelines/foundations/typography/index.md)

  The preview holds a note to a readable measure. Titles truncate in the list, and its dates are set in tabular figures.

- [Code blocks](/ui/guidelines/patterns/code-blocks/index.md)

  Open Retry design: retry.ts names its code block, whose header offers Download and Copy as commands of their own, and the diagram's header holds its Source toggle and ⤢.

- [Long content](/ui/guidelines/patterns/long-content/index.md)

  Open Retry design and scroll to its end: the series embedded there is cut, and Show all in the viewer under it opens the patch there, as its header's ⤢ does.

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

  Type / at the start of a line for blocks, or # for the tags already in use. The keyboard button lists the editor's shortcuts with each platform's keys.

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

  On a phone a note opens to be read, and the on-screen keyboard comes up only when you press Edit.

## Components

- [ui · EmptyState](/ui/storybook/?path=/docs/ui-emptystate--docs)
- [ui · useMediaQuery](/ui/storybook/?path=/docs/ui-hooks-usemediaquery--docs)
- [ui · Button](/ui/storybook/?path=/docs/ui-primitives-button--docs)
- [ui · DropdownMenu](/ui/storybook/?path=/docs/ui-primitives-dropdownmenu--docs)
- [ui · Input](/ui/storybook/?path=/docs/ui-primitives-input--docs)
- [ui · List](/ui/storybook/?path=/docs/ui-primitives-list--docs)
- [ui · Pane](/ui/storybook/?path=/docs/ui-primitives-pane--docs)
- [ui · SegmentedControl](/ui/storybook/?path=/docs/ui-primitives-segmentedcontrol--docs)
- [ui · Timestamp](/ui/storybook/?path=/docs/ui-primitives-timestamp--docs)
- [ui · Toaster](/ui/storybook/?path=/docs/ui-primitives-toaster--docs)
- [ui · Toggle](/ui/storybook/?path=/docs/ui-primitives-toggle--docs)
- [ui · Tooltip](/ui/storybook/?path=/docs/ui-primitives-tooltip--docs)
- [ui · Toolbar](/ui/storybook/?path=/docs/ui-toolbar--docs)
- [ui-codemirror · EditorShortcutsHelp](/ui/storybook/?path=/docs/ui-codemirror-editorshortcutshelp--docs)
- [ui-codemirror · MarkdownEditor](/ui/storybook/?path=/docs/ui-codemirror-markdowneditor--docs)
- [ui-content · AttachmentViewerProvider](/ui/storybook/?path=/docs/ui-content-attachmentviewerprovider--docs)
- [ui-markdown · Markdown](/ui/storybook/?path=/docs/ui-markdown-markdown--docs)
- [ui-mermaid · Content](/ui/storybook/?path=/docs/ui-mermaid-content--docs)
