Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
loadingText: {
group: 'attr',
type: text,
config: ['loading text', 'Loading...'],
prop: 'loading-text',
},
loadedText: {
group: 'attr',
type: text,
config: ['loaded text', 'Complete.'],
prop: 'loaded-text',
},
state: {
group: 'attr',
type: select,
config: ['Loading state', STATES, STATES.LOADING],
prop: 'state',
},
};
const variants = [{ name: 'default' }, { name: 'minimal', includes: ['state'] }];
const storySet = knobsHelper.getStorySet(variants, preKnobs);
for (const story of storySet) {
storiesDefault.add(
story.name,
() => {
const settings = story.knobs();
// ----------------------------------------------------------------
const templateString = `