```ts
// MyComponent.stories.ts|tsx

import React from 'react';

import type { ComponentStoryObj, ComponentMeta } from '@storybook/react';

import { withDesign } from 'storybook-addon-designs';

import { MyComponent } from './MyComponent';

// More on default export: https://storybook.js.org/docs/7.0/react/writing-stories/introduction#default-export
export default {
  title: 'FigmaExample',
  component: MyComponent,
  decorators: [withDesign],
} as ComponentMeta<typeof YourComponent>;

export const Example: ComponentStoryObj<typeof MyComponent> = {
  parameters: {
    design: {
      type: 'figma',
      url: 'https://www.figma.com/file/Sample-File',
    },
  },
};
```
