Button

Displays a button or a component that looks like a button.

Usage

You can use one of the btn classes to style any element as a button:

  • Variants:
    • btn or btn-primary for primary buttons,
    • btn-secondary for secondary buttons.
    • btn-destructive for destructive buttons.
    • btn-outline for outline buttons.
    • btn-ghost for ghost buttons.
    • btn-link for link buttons.
    • btn-icon for icon buttons. This can be combined with other variants, for example btn-icon-destructive.
  • Sizes:
    • btn-sm for small buttons.
    • btn-lg for large buttons.
    • You can combine sizes with any variant, for example btn-lg-destructive or btn-sm-icon-outline.
<button class="btn">Button</button>

Examples

Primary

Secondary

Destructive

Outline

Ghost

Icon

With Icon

Loading

Large

Small