Skip to main content
/
/
/
Button

Button

For click events

React component

Basic button

Also see the <Button> React component

The .bf-button will apply bifrost button styling:

The .bf-button class, and all the combinations below can also be applied to <a> elements.

Filled and flat variants

Another two alternative button variants are supplied:

State colors

Another three alternative button variants are supplied:

Combine variants and states

statevariant
default
inactive
neutral
alert
inverted

Rounded corners (pill button)

Small size

Button group

Expand button

Control open state by toggling the .bf-expand-icon-open class on the icon.

A note about type

The default type of a <button> is submit. Unless you need the button to submit a <form> you probably want <button type='button'> instead.

HTML
<form>
  <button>this button will submit the form</button>
  <button type="button">this will not (use js to handle clicks)</button>
</form>