mirror of
https://github.com/material-components/material-web.git
synced 2024-10-27 06:04:44 +03:00
5f80c096e0
PiperOrigin-RevId: 531005525
23 lines
610 B
TypeScript
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);
|