Recipes
Recipes
Short answers to common tasks with @azmr/ui, each with a live demo and the source to copy.
View as Markdown for coding assistants, or see llms.txt.
A recipe is one task, answered in one screen. For whole pages built from many components, see the examples.
| Recipe | The task |
|---|---|
| Validate a form | Show an error next to a field, in a way a screen reader hears, and put focus on it. |
| Show a toast while a promise runs | Report loading, success and failure of one async call. |
| Open a dialog from a menu item | Confirm something chosen from a menu, without the dialog closing with the menu. |
| Give each tenant its own theme | Apply a brand colour from data to one part of a page. |