Skip to content

Commit

Permalink
Merge pull request #14 from chrisvogt/button-attributes
Browse files Browse the repository at this point in the history
feat: resolve Lighthouse a11y warnings from the button element
  • Loading branch information
todd-elvers authored Nov 7, 2024
2 parents 6c91c07 + cd38bab commit d105ece
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const YourComponent = () => {

Prop | Type | Default | Required
--------------------- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------------------------- | --------
`attributes` | optional object containing attributes to spread onto the button
`isDarkMode`| boolean |N/A|Yes
`onChange`| function that recieves a single argument: the new value of `isDarkMode` |N/A|Yes
`size`| number (defaults to `px`) or a string containing a number+unit (e.g `"10px"`, `"2em"`, `"4.5rem"`, `"100%"`, etc). These units may also have a space between them (e.g. `"10 px"`, `"2 em"`, etc). |`85px`|No
Expand Down
Loading

0 comments on commit d105ece

Please sign in to comment.