mirror of
https://github.com/material-components/material-web.git
synced 2024-11-10 20:11:57 +03:00
c390291687
PiperOrigin-RevId: 576601342
28 lines
608 B
TypeScript
28 lines
608 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2023 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import './material-collection.js';
|
|
import './index.js';
|
|
|
|
import {
|
|
KnobTypesToKnobs,
|
|
MaterialCollection,
|
|
materialInitsToStoryInits,
|
|
setUpDemo,
|
|
} from './material-collection.js';
|
|
import {boolInput, Knob} from './index.js';
|
|
|
|
import {stories, StoryKnobs} from './stories.js';
|
|
|
|
const collection = new MaterialCollection<KnobTypesToKnobs<StoryKnobs>>(
|
|
'Focus',
|
|
[new Knob('inward', {ui: boolInput(), defaultValue: false})],
|
|
);
|
|
|
|
collection.addStories(...materialInitsToStoryInits(stories));
|
|
|
|
setUpDemo(collection);
|