Skip to content

Commit d105ece

Browse files
authored
Merge pull request #14 from chrisvogt/button-attributes
feat: resolve Lighthouse a11y warnings from the button element
2 parents 6c91c07 + cd38bab commit d105ece

4 files changed

Lines changed: 21 additions & 17 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export const YourComponent = () => {
7171

7272
Prop | Type | Default | Required
7373
--------------------- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------------------------- | --------
74+
`attributes` | optional object containing attributes to spread onto the button
7475
`isDarkMode`| boolean |N/A|Yes
7576
`onChange`| function that recieves a single argument: the new value of `isDarkMode` |N/A|Yes
7677
`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

0 commit comments

Comments
 (0)