Skip to content

roxiness/focus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

focus

Usage

<script>
  import { focus } from '@sveltech/focus'
</script>

<h1 use:focus>I will be focused</h1>
Notes

If multiple elements with focus are loaded synchronously, the element with the shortest ancestor tree takes precedence and is focused.

About

Focus helper for better ARIA in Svelte

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published