A versatile button component.
A Button component has the following properties:
| Prop | Required | Description |
|---|---|---|
type | no | Default type: button. |
onclick | no | Optional click handler. |
class | no | Additional classes. |
| Name | Required | Description |
|---|---|---|
children | yes | What the button will display. |
icon | no | Snippet to add an icon. |
If the href prop is not provided, the button will be rendered as a plain button:
This is what a disabled button looks like:
You can add an icon to the button using the icon snippet:
If the href prop is provided, the button will be rendered as an anchor: