/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import '@material/web/checkbox/checkbox.js'; import { labelStyles, MaterialStoryInit, } from './material-collection.js'; import {css, html} from 'lit'; /** Knob types for checkbox stories. */ export interface StoryKnobs { checked: boolean; disabled: boolean; indeterminate: boolean; } const checkbox: MaterialStoryInit = { name: 'Checkbox', render({checked, disabled, indeterminate}) { return html` `; }, }; const withLabels: MaterialStoryInit = { name: 'With labels', styles: [ labelStyles, css` ol { all: unset; display: flex; flex-direction: column; } li { all: unset; } label { gap: 0; } `, ], render({disabled}) { return html`
`; }, }; /** Checkbox stories. */ export const stories = [checkbox, withLabels];