@restlessbit/aria-button
Accessible Aria Button component for React, based on the ARIA button role docs in MDN.
Installation
yarn add @restlessbit/aria-button
Usage
import AriaButton from '@restlessbit/aria-button'
function CoolAccessibleReactApplication () {
return (
<AriaButton onClick={() => alert('sick!')}>Click dis with your mouse, or use your keyboard if you would prefer!</AriaButton>
)
}
Running the example
yarn example
Running tests
yarn test