aria-ease 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,19 +64,20 @@ The makeTabAccessible function takes two string arguments; the id of the tab mai
|
|
|
64
64
|
#### Usage
|
|
65
65
|
|
|
66
66
|
```
|
|
67
|
+
import { useEffect } from 'react'
|
|
67
68
|
import { makeTabAccessible } from "aria-ease"
|
|
68
69
|
|
|
69
70
|
const App = () => {
|
|
70
|
-
|
|
71
|
+
useEffect(() => {
|
|
71
72
|
makeTabAccessible('custom-tab', 'custom-tab-item')
|
|
72
|
-
}
|
|
73
|
+
},[])
|
|
73
74
|
|
|
74
75
|
return (
|
|
75
76
|
<div>
|
|
76
77
|
<div id="custom-tab">
|
|
77
|
-
<button className="custom-tab-item"
|
|
78
|
-
<button className="custom-tab-item"
|
|
79
|
-
<button className="custom-tab-item"
|
|
78
|
+
<button className="custom-tab-item">One</button>
|
|
79
|
+
<button className="custom-tab-item">Two</button>
|
|
80
|
+
<button className="custom-tab-item">Three</button>
|
|
80
81
|
</div>
|
|
81
82
|
</div>
|
|
82
83
|
)
|