Skip to main content

Button

A button to perform actions with different styles and colors.

Base

<button class="btn">Button</button>

Colors

Set the button color using the is-{color} class.

info

To see the available colors, check the Colors section.

<div class="is-flex is-gap-3">
<button class="btn is-primary">Primary</button>
<button class="btn is-info">Info</button>
<button class="btn is-success">Success</button>
<button class="btn is-warning">Warning</button>
</div>

Tonal

Adds a tonal background to the button using the is-tonal class.

tip

You can combine it with colors, for example: is-tonal is-primary, is-tonal is-warning, etc.

Outlined

You can set the button with borders and a white background using the is-outlined class.

Rounded

You can set the button with rounded borders using the is-rounded class.

Icons

You can add icons to the button using the <iconify-icon> component.

tip

For more information on how to use icons, check the Icons section.