# ToastMark

Supply UI 1.1.0. Helpers.

The round mark a toast shows (success, info, warning, error, loading), for a message shaped like a toast that is not one

The mark of a toast's kind (`success`, `info`, `warning`, `error`, `loading`); nothing for a plain message

## Options

| Option | Type | Default | What it does |
| --- | --- | --- | --- |
| `type` | `string` |  | The toast's kind: `success`, `info`, `warning`, `error` or `loading`; anything else shows no mark. |

## CSS parts

With the CSS in parts (`/ui/css/`), it needs: `components/button.css`, `components/loading.css`, `components/toast.css`, `components/icons.css`, `components/button-group-toggle.css`, `components/carousel-arrows.css`, besides the ones every page loads.

## Helpers: notes

Hooks and functions the components are made of, passed on so a project uses the same ones: keyboard shortcuts, options loaded while typing, search matching, saved preferences, screen-reader announcements, smooth sizes, the theme.

**Do**
- Use `useShortcut` for app-wide keys, and show the key with `formatShortcut` so it reads right on each computer.
- Use `announce()` to tell a screen reader what changed when nothing visible takes focus ("3 results").

**Don't**
- Don't turn off the smooth sizes `Toaster` starts; boxes would jump when their content changes.
