Button

A versatile button component.

Props

A Button component has the following properties:

PropRequiredDescription
typenoDefault type: button.
onclicknoOptional click handler.
classnoAdditional classes.

Snippets

NameRequiredDescription
childrenyesWhat the button will display.
iconnoSnippet to add an icon.

Examples

Plain Button

If the href prop is not provided, the button will be rendered as a plain button:

This is what a disabled button looks like:

Icon Button

You can add an icon to the button using the icon snippet:

Link Button

If the href prop is provided, the button will be rendered as an anchor: