@restlessbit/aria-button
v1.0.5
Published
> Accessible Aria Button component for React, based on the [ARIA button role docs in MDN](https://mzl.la/2Sj49P6).
Downloads
6
Readme
@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