.add('With knobs', () => { const name = text('name', 'Dynamic knob'); return { component: ServiceComponent, props: { name, }, }; });
.add('With Knobs', () => ({ template: `<storybook-button-component [text]="text" (onClick)="onClick($event)"></storybook-button-component>`, props: { text: text('text', 'Button with custom styles'), onClick: action('log'), }, styles: [ ` storybook-button-component { background-color: red; padding: 25px; } `, ], }));
.add('inputs and inject dependencies with knobs', () => ({ component: DiComponent, props: { title: text('title', 'Component dependencies'), }, }));
.add('With Knobs', () => ({ component: NameComponent, props: { field: text('field', 'foobar'), }, }));