Access-It is an NPM package composed of accessible components that follow WAI-ARIA accessibility guidelines. Documentation here.
npm install access-it react styled-components --save
yarn add access-it react styled-components
Argument | Required? | Description |
---|---|---|
kind |
Yes | Choose the type of button you want. Options are "basic," "primary," or "secondary." |
buttonSize |
Yes | Choose the size of your button. Options are "small," "medium," or "large." |
disabled |
No | Choose if button is disabled or not |
style |
No | Add your chosen styling |
Argument | Required? | Description |
---|---|---|
checked |
No | Choose if button is pre-checked and controlled |
In order to start working:
- Run
yarn start
to get the source code and Webpack server running. - Run
yarn start
indocs
to get the documentation server running. - Open
http://localhost:3000
.
To publish:
- After the repo is in the correct state, bump the package version following semantic versioning
- Commit the package bump in a commit with a comment like "Bump to 1.0.1".
- Run
npm publish --access public
.