Button Micro
Underlined text that acts as a button or a link.
Usage
For small actions next to content: clearing a filter, opening a changelog. It renders a button unless you pass as.
tsx
<ButtonMicro onClick={reset}>clear filters</ButtonMicro>
<ButtonMicro as="a" href={href} target="_blank" rel="noreferrer">
changelog
</ButtonMicro>Active
The table of contents on the right of these pages is a list of them.
Reference
| prop | type | default | |
|---|---|---|---|
as? | ElementType | "button" | the element or component to render |
active? | boolean | false | accent colour; visual only |
className? | string | — | added after the component's own class: what you set wins |
…rest | props of as | — | typed against the chosen element |