material-web/elevation/demo/demo.ts
Elliott Marquez 5f80c096e0 refactor: remove extraneous file extensions
PiperOrigin-RevId: 531005525
2023-05-10 14:26:01 -07:00

23 lines
610 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 {Knob, numberInput} from './index.js';
import {stories, StoryKnobs} from './stories.js';
const collection =
new MaterialCollection<KnobTypesToKnobs<StoryKnobs>>('Elevation', [
new Knob('level', {defaultValue: 1, ui: numberInput()}),
]);
collection.addStories(...materialInitsToStoryInits(stories));
setUpDemo(collection);