/* 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/Named Deck", }; export const Tabs = () => html`

This is tab 1

This is tab 2

This is tab 3


The dashed outline is added for emphasis here. It applies to the button with the selected attribute, but matches the deck's selected-view name.

These tabs are a combination of button-group, named-deck-button, and named-deck.

`; export const ListMenu = () => html`

This is tab 1

This is tab 2

This is tab 3


This is an alternate layout for creating a menu navigation. In this case, the first view in the named-deck is the list view which contains the named-deck-buttons to link to the other views. Each view then includes a back named-deck-button which is used to navigate back to the first view.

`;