storybook/docs/snippets/angular/component-story-figma-integration.ts.mdx
2022-07-15 11:09:15 -07:00

26 lines
577 B
Plaintext

```ts
// MyComponent.stories.ts
import type { Story, Meta } from '@storybook/angular/';
import { withDesign } from 'storybook-addon-designs';
import { MyComponent } from './MyComponent.component';
// More on default export: https://storybook.js.org/docs/7.0/angular/writing-stories/introduction#default-export
export default {
title: 'FigmaExample',
component: MyComponent,
decorators: [withDesign],
} as Meta;
export const Example: Story = {
parameters: {
design: {
type: 'figma',
url: 'https://www.figma.com/file/Sample-File',
},
},
};
```