storybook/docs/snippets/web-components/component-story-figma-integration.ts.mdx
2023-01-05 14:53:03 +00:00

26 lines
461 B
Plaintext

```ts
// MyComponent.stories.ts
import type { Meta, StoryObj } from '@storybook/web-components';
import { withDesign } from 'storybook-addon-designs';
const meta: Meta = {
title: 'FigmaExample',
component: 'my-component',
decorators: [withDesign],
};
export default meta;
type Story = StoryObj;
export const Example: Story = {
parameters: {
design: {
type: 'figma',
url: 'https://www.figma.com/file/Sample-File',
},
},
};
```