Button

Buttons are used to take actions.

Examples

Theme

Props

Name

Type

Default value

Description

children

string

''

Content of the component. Only text for now.

disabled

bool

false

Is the Button disabled or not.

onClick

func

noop()

This function is called when the user clicks on the Button.

type

string

'button'

The type to pass to the underlying button html element

variant

enum

'primary'

The type of variation to display