Releases: metonym/svelte-focus-key
Releases · metonym/svelte-focus-key
v0.1.0
Initial release.
Component
<script>
import FocusKey from "svelte-focus-key";
let element;
</script>
<input bind:this={element} placeholder={'Press "/" to focus'} />
<FocusKey {element} />
Action
<script>
import { focusKey } from "svelte-focus-key";
</script>
<input use:focusKey placeholder={'Press "/" to focus'} />