um

Button

A button, a link that looks like one, or a button_to form, from one call; and button_classes, the class string alone, for link_to, button_to and form.submit. Pick a variant for its weight and a size to sit beside other controls.

Variants

Default, primary, ghost and danger. Danger keeps the default's shape; only the label and hover warn.

Sizes

Small, default and large, each matching an input of the same size.

Icons, links and forms

icon: leads the label; the :icon variant shows only the icon and keeps the label for a screen reader. href: makes a link, and with method: a button_to form.

Docs

Loading, disabled and block

loading: true disables the button and turns a spinner in the icon's place. A disabled link is marked and taken out of the tab order. block: true fills the width.

Disabled link

Button groups

button_group joins buttons edge to edge into one control; orientation: :vertical stacks them.