docs: add example to README

This commit is contained in:
Oliver Davies 2023-08-24 20:04:33 +01:00
parent bb4948c8ef
commit 79f73af214

View file

@ -1 +1,9 @@
# tailwindcss-plugin-hocus-state # tailwindcss-plugin-hocus-state
A [Tailwind CSS](https://tailwindcss.com) plugin that adds a `hocus` variant to add styles for both `hover` and `focus` states with the same utility.
## Example
```html
<a class="hocus:bg-black hocus:text-white hocus:underline" href="#0">This is a link</a>
```