Toggle theme
An unstyled component that can be used for creating your own clickable components. It's basically a native HTML button element with all the browser default styling removed. Read more about buttons and accessibility
This article also explains why: https://css-tricks.com/use-button-element/
If you pass a href, click will render an <a>
, otherwise it will render as a <button>
.
Name | Description | Type | Default Value |
---|---|---|---|
children | A JSX node | node | n/a |
disabled | Set the Click to disabled | bool | n/a |
extend | An object containing valid CSS style declarations | union(object,func,array) | n/a |
href | Setting an href attribute will force the component to render with an <a> tag | string | n/a |
onClick | An action that is fired on click | func | n/a |
type | If rendering a button (by not supplying an href), this let's you provide a type attribute for that button | string | n/a |