Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add hint for ES6 imports to Readme

fixes WICG#252
  • Loading branch information
benjaminpreiss authored Apr 3, 2021
1 parent ea5722d commit 153448e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,23 @@ _If you do want to build from source, make sure you clone the latest tag!_

### 1. Add the script to your page

Using a script tag:

```html
...
<script src="/node_modules/focus-visible/dist/focus-visible.min.js"></script>
</body>
</html>
```

Using ES6 imports (e.g. for nextjs)

```js
...
import "focus-visible"
...
```

### 2. Update your CSS

We suggest that users
Expand Down

0 comments on commit 153448e

Please sign in to comment.