mirror of
https://github.com/material-components/material-web.git
synced 2024-10-27 06:04:44 +03:00
5f80c096e0
PiperOrigin-RevId: 531005525
25 lines
779 B
TypeScript
25 lines
779 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2023 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import './index.js';
|
|
import './material-collection.js';
|
|
|
|
import {KnobTypesToKnobs, MaterialCollection, materialInitsToStoryInits, setUpDemo} from './material-collection.js';
|
|
import {boolInput, Knob, textInput} from './index.js';
|
|
|
|
import {stories, StoryKnobs} from './stories.js';
|
|
|
|
const collection =
|
|
new MaterialCollection<KnobTypesToKnobs<StoryKnobs>>('Chips', [
|
|
new Knob('label', {defaultValue: '', ui: textInput()}),
|
|
new Knob('elevated', {defaultValue: false, ui: boolInput()}),
|
|
new Knob('disabled', {defaultValue: false, ui: boolInput()}),
|
|
]);
|
|
|
|
collection.addStories(...materialInitsToStoryInits(stories));
|
|
|
|
setUpDemo(collection, {icons: 'material-symbols'});
|