Button

Overview

Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it.

Primary: For the primary, most important, or most common action on a screen.

Secondary: For optional or supplementary actions with less prominence.

Demo

Props

PropertyDescriptionTypeValuesDefaultRequired
labelThe text for the buttonstring | undefinedstring | undefined
sizeThe button's sizeButtonSize | undefined"small" | "medium" | "large""medium"
variantWhether this is a primary or secondary buttonButtonVariant | undefined"primary" | "secondary""primary"
formatDictates if the button has an iconButtonFormat | undefined"no-icon" | "with-icon" | "icon-only""no-icon"
toTurns the button into an anchor and sets the hrefstring | undefinedstring | undefined

Slots

NameDescriptionType
defaultThe content in the button.any
iconThe icon for the button. If left empty defaults to a right arrow.any