You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`type`|`string`| - |`submit`, `reset`, `button`|`button`| Used as the HTML `type` attribute. |
30
+
|`label`|`string`| ✅ | - | - | Should describe what the button does, for accessibility purposes (screen-reader users) |
31
+
|`icon`|`node`| ✅ | - | - | An `Icon` component |
32
+
|`isDisabled`|`bool`| - | - |`false`| Tells when the button should present a disabled state |
33
+
|`onClick`|`func`| ✅ | - | - | What the button will trigger when clicked |
34
+
|`color`|`oneOf`| - |`solid`, `primary`|`solid`| Sets the color of the icon |
35
+
|`as`|`string` or `element`| - | - | - | You may pass in a string like "a" to have the button render as an anchor tag instead. Or you could pass in a React Component, like a `Link`. |
36
+
37
+
The component further forwards all valid HTML attributes to the underlying `button` component.
0 commit comments