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. |
33
-
|`label`|`string`| ✅ | - | - | Should describe what the button is for |
34
-
|`onClick`|`func`| ✅ | - | - | What the button will trigger when clicked |
35
-
|`icon`|`element`| - | - | - | The icon of the button |
36
-
|`iconPosition`|`oneOf`| - |`left`, `right`|`left`| The position of the icon |
37
-
|`isDisabled`|`boolean`| - | - | - | Tells when the button should present a disabled state |
38
-
|`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`. |
|`type`|`string`| - |`submit`, `reset`, `button`|`button`| Used as the HTML `type` attribute. |
33
+
|`label`|`string`| ✅ | - | - | Should describe what the button is for |
34
+
|`onClick`|`func`| ✅ | - | - | What the button will trigger when clicked |
35
+
|`icon`|`element`| - | - | - | The icon of the button |
36
+
|`iconPosition`|`oneOf`| - |`left`, `right`|`left`| The position of the icon |
37
+
|`isDisabled`|`boolean`| - | - | - | Tells when the button should present a disabled state |
38
+
|`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`. |
39
39
40
40
The component further forwards all valid HTML attributes to the underlying `button` component.
0 commit comments