storybook/docs/snippets/angular/component-story-figma-integration.ts.mdx
2022-07-07 19:05:48 +01:00

25 lines
576 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',
},
},
};
```