/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import '@material/web/switch/switch.js'; import { labelStyles, MaterialStoryInit, } from './material-collection.js'; import {css, html} from 'lit'; /** Knob types for Switch stories. */ export interface StoryKnobs { disabled: boolean; selected: boolean; icons: boolean; showOnlySelectedIcon: boolean; } const standard: MaterialStoryInit = { name: 'Switch', render(knobs) { return html` `; }, }; const labeled: MaterialStoryInit = { name: 'With labels', styles: [ labelStyles, css` .column { display: flex; flex-direction: column; gap: 16px; width: 200px; } label { justify-content: space-between; } `, ], render(knobs) { return html`
`; }, }; /** Switch stories. */ export const stories = [standard, labeled];