Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon-controls: Add examples to angular, ember, html, svelte, vue, web-components #11197

Merged
merged 12 commits into from
Jun 16, 2020
Prev Previous commit
Next Next commit
Addon-controls: Angular example
shilman committed Jun 16, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 6c7e1216220a24827cb3e2ef970bcb5261c257a3
18 changes: 18 additions & 0 deletions examples/angular-cli/src/stories/addon-controls.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { ButtonComponent } from './doc-button/doc-button.component';

export default {
title: 'Addon/Controls',
component: ButtonComponent,
parameters: { docs: { iframeHeight: 120 } },
};

const ButtonStory = (args) => ({
component: ButtonComponent,
props: args,
});

export const Basic = ButtonStory.bind({});
Basic.args = { label: 'Args test', isDisabled: false };

export const Disabled = ButtonStory.bind({});
Disabled.args = { label: 'Disabled', isDisabled: true };