mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-18 07:23:09 +00:00
1.2 KiB
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 >}}