Button groups

Buttons can be grouped together using the button_group component. Direction of the group can be set to either horizontal or vertical by setting the direction parameter to either "row" or "column".

{%- call ui.util.call(show_example) -%} {%- raw %} {%- call ui.util.call(ui.button_group, direction="row") -%} {{ ui.button("First") }} {{ ui.button("Second", style="danger") }} {%- endcall %} {% call ui.util.call(ui.button_group, direction="column") -%} {{ ui.button(ui.icon("edit")) }} {{ ui.button(ui.icon("trash"), style="danger") }} {%- endcall %} {%- endraw %} {%- endcall %}