The button is an essential element of any design. It's meant to look and behave as an interactive element of your page.
--- title: Button layout: documentation doc-tab: elements doc-subtab: button --- {% capture button_example %} Button {% endcapture %} {% capture button_tags_example %} Anchor {% endcapture %} {% capture button_colors_a_example %} White Light Dark Black Text {% endcapture %} {% capture button_colors_b_example %} Primary Link Info Success Warning Danger {% endcapture %} {% capture button_sizes_example %} Small Normal Medium Large {% endcapture %} {% capture button_outlined_example %} Outlined Outlined Outlined Outlined Outlined Outlined {% endcapture %} {% capture button_inverted_example %} Inverted Inverted Inverted Inverted Inverted {% endcapture %} {% capture button_inverted_outlined_example %} Invert Outlined Invert Outlined Invert Outlined Invert Outlined Invert Outlined {% endcapture %} {% capture button_normal_example %} Normal Normal Normal Normal Normal Normal Normal {% endcapture %} {% capture button_hover_example %} Hover Hover Hover Hover Hover Hover Hover {% endcapture %} {% capture button_focus_example %} Focus Focus Focus Focus Focus Focus Focus {% endcapture %} {% capture button_active_example %} Active Active Active Active Active Active Active {% endcapture %} {% capture button_loading_example %} Loading Loading Loading Loading Loading Loading Loading {% endcapture %} {% capture button_static_example %} {% endcapture %} {% capture button_disabled_example %} Disabled Disabled Disabled Disabled Disabled Disabled Disabled {% endcapture %} {% capture button_fa_example %}
{% endcapture %} {% capture button_only_icon_example %} {% endcapture %} {% capture button_group_example %} {% endcapture %} {% capture button_addons_example %} {% endcapture %} {% capture button_group_addons_example %} {% endcapture %} {% capture buttons %} {% endcapture %} {% capture buttons_multiple %} {% endcapture %} {% capture buttons_addons %} {% endcapture %} {% capture buttons_addons_centered %} {% endcapture %} {% capture buttons_addons_right %} {% endcapture %} {% capture buttons_addons_selected %} {% endcapture %} {% include subnav-elements.html %}The button is an essential element of any design. It's meant to look and behave as an interactive element of your page.
The .button
class can be used on:
<a>
anchor links
<button>
form buttons
<input type="submit">
submit inputs
<input type="reset">
reset inputs
You can create a non-interactive button by using the is-static
modifier. This is useful to align a text label with an input, for example when using form addons.
If the button only contains an icon, Bulma will make sure the button remains square, no matter the size of the button or of the icon.
If you want to group buttons together on a single line, use the is-grouped
modifier on the field
container:
If you want to use buttons as addons, use the has-addons
modifier on the field
container:
You can group together addons as well:
You can now create a list of buttons with the .buttons
container.
If the list is very long, it will automatically wrap on multiple lines, while keeping all buttons evenly spaced.
You can attach buttons together with the .has-addons
modifier.
Use the is-centered
or the is-right
modifiers to alter the alignment.
You can use any modifier class on each button to differentiate them. Make sure to add the is-selected
modifier as well to make sure the selected button is above its siblings.