Button

Buttons are user interface elements that initiates actions. This is their primary function and it is this function that makes them very different from links particularly on the web.


Props

Button properties

PropertyDescriptionTypeDefaultVersion
backgroundColorSets the background color of the buttonstring-
blockAllow button take full width of the parent elementbooleanfalse
colorSets the color of the buttonstring-
dangerUse if call-to-action is irreversible or destructivebooleanfalse
disabledSet disabled state so buttons look inactive and cannot be interacted with.booleanfalse
loadingSet the loading status of the buttonbooleanfalse
onClickCallback fired when a button is clicked.(event) => void-
pillSet shape of button to pill-shaped.booleanfalse
sizeHow large should the button be?large medium smallmedium
variantWhat variant of the button is to be used?primary secondary ghostprimary

Usage

Variant

Dark Mode
camara.space

Size

Dark Mode
camara.space

Disabled

Dark Mode
camara.space

Danger

Dark Mode
camara.space

Pill

Dark Mode
camara.space

Block

Dark Mode
camara.space

Background color

Dark Mode
camara.space

Color

Dark Mode
camara.space