/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { html } from "lit";
// Imported for side-effects.
// eslint-disable-next-line import/no-unassigned-import
import "toolkit-widgets/named-deck.js";
export default {
title: "Widgets/Functional/Button Group",
argTypes: {
orientation: {
options: ["horizontal", "vertical"],
control: { type: "radio" },
},
},
};
const Template = ({ orientation }) => html`
The button-group
element will group focus to the buttons,
requiring left/right or up/down to switch focus between its child elements.
It accepts an orientation
property, which determines if
left/right or up/down are used to change the focused button.