Skip to content

ButtonGroup

Use ButtonGroupComponent to render a series of buttons.

Examples

Default

<%= render(Primer::ButtonGroupComponent.new) do |component|
component.button { "Default" }
component.button(button_type: :primary) { "Primary" }
component.button(button_type: :danger) { "Danger" }
component.button(button_type: :outline) { "Outline" }
component.button(classes: "my-class") { "Custom class" }
end %>

Arguments

NameTypeDefaultDescription
system_argumentsHashN/ASystem arguments

Slots

Buttons

Required list of buttons to be rendered.

NameTypeDefaultDescription
kwargsHashN/AThe same arguments as Button.