Skip to content

Button ​

javascript
import { XerButton } from "@xerius/codey-components";

Showcases ​

CTA Button ​

For indicating the primary path of the application.

Small CTA Button ​

Only to be used in combination with a textfield The small CTA button never be of another type of button, it should always be a CTA.

Small Variants Button ​

Small variants with a full and stroke look.

Buttons with the link prop provided will be a tag element.

Buttons with the link prop provided will be a tag element.

Disabling CTA Buttons ​

Disabling Small Variants Buttons ​

Props ​

NameTypeDefaultRequiredDescription
variantString"stroke"falseIndicates what the variant of the button is. ("cta", "cta-outline", "full", "stroke")
variantColorStringfalseIndicates what the variant color of the button is. ("cta", "brand", "base")
iconIcon ComponentfalseProvide an icon.
leftBooleanfalsefalseIndicates the button should have a chevron-left and points to the left or not.
loadingBooleanfalsefalseIndicates if loading icon and animation is shown or not.
linkStringfalseURL of the link, which it will navigate to after the click event is triggered.
htmlnullfalseHTML to show in the button. To be used instead of the v-html directive.
disabledBooleanfalsefalseIndicates if the button is disabled or not.
dataAutomationIdStringfalseSets the data automation id for the alert component.