Buttons

We use buttons to initiate actions inside and outside of the Buffer app. less/components/Button.less provides a number of predefined button styles, which are documented below, for most use cases.

Button

This is the default style of a button. To use it, set the class property of a button or a node to Button.

Modifiers

Button--state-error

Use this modifier to communicate a destructive action to the user. To use it, give an a, button, or div node an additional class of Button--state-error.

Button--type-borderless

Use this modifier to communicate a non-primary action to the user. To use it, give an a, button, or div node an additional class of Button--type-borderless.

Button--type-in-app

Use this modifier to communicate an in-app action to the user. To use it, give an a, button, or div node an additional class of Button--type-in-app.

Button--type-secondary

Use this modifier to communicate a secondary action to the user. To use it, give an a, button, or div node an additional class of Button--type-secondary.

Button--type-small

Use this modifier to communicate a primary action to the user when space is limited. To use it, give an a, button, or div node an additional class of Button--type-small.

Button--type-tertiary

Use this modifier to communicate a tertiary action to the user. To use it, give an a, button, or div node an additional class of Button--type-tertiary.

ButtonIcon

Use to communicate an action to the user using an icon only. To use it, give an a, button, or div node a class of ButtonIcon.