Files
hinode/content/en/docs/0.8/components/button-group.md
2023-01-11 15:07:25 +01:00

1.2 KiB

author, title, date, description, group, layout
author title date description group layout
Mark Dumay Button Group 2023-01-05 Use the button-group shortcode to display a group of buttons. components docs

Overview

Use the button-group shortcode to display a group of buttons. Add inner <button> elements for each [button]({{< ref "button" >}} "button").

Arguments

The shortcode supports the following arguments:

Argument Required Description
aria-label No Optional assistive label for the button group.
{.table}

Example

As an example, the following shortcode displays a group of three buttons.

{{</* button-group aria-label="Basic example" */>}}
  {{</* button color="primary" href="#" */>}}Left{{</* /button */>}}
  {{</* button color="primary" href="#" */>}}Middle{{</* /button */>}}
  {{</* button color="primary" href="#" */>}}Right{{</* /button */>}}
{{</* /button-group */>}}

The result looks like this:

{{< button-group aria-label="Basic example" >}} {{< button color="primary" href="#" >}}Left{{< /button >}} {{< button color="primary" href="#" >}}Middle{{< /button >}} {{< button color="primary" href="#" >}}Right{{< /button >}} {{< /button-group >}}