Element: #146 autofocus (navigation/actions)
What it shows: An input that receives focus on mount, with a button that remounts it through a keyed block.
When to use: Dialogs, inline editors and search fields where the first field should take focus as soon as it appears.
Spec:
- `use:autofocus` imported from `@codeatlasdev/ui/actions` on a native ` key++}>Remount input` remounts the input so focus is applied again
Tags: autofocus, action, focus, input, remount, a11y
Needs: @codeatlasdev/ui@4.4.0
Components: Button
Live demo: https://ui.codeatlas.com.br/docs/navigation/actions#autofocus
{#key key}
{/key}