Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@

import type { Meta, StoryObj } from '@storybook/angular/';

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

import { MyComponent } from './MyComponent.component';

// More on default export: https://storybook.js.org/docs/angular/writing-stories/introduction#default-export
const meta: Meta<MyComponent> = {
component: MyComponent,
decorators: [withDesign],
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
```js
// MyComponent.stories.js|jsx

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

import { MyComponent } from './MyComponent';

// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
export default {
component: MyComponent,
decorators: [withDesign],
};

export const Example = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@

import type { Meta, StoryObj } from '@storybook/react';

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

import { MyComponent } from './MyComponent';

// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
const meta = {
component: MyComponent,
decorators: [withDesign],
} satisfies Meta<typeof MyComponent>;

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@

import type { Meta, StoryObj } from '@storybook/react';

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

import { MyComponent } from './MyComponent';

// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
const meta: Meta<typeof MyComponent> = {
component: MyComponent,
decorators: [withDesign],
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
```js
// MyComponent.stories.js|jsx

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

import { MyComponent } from './MyComponent';

export default {
component: MyComponent,
decorators: [withDesign],
};

export const Example = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@

import type { Meta, StoryObj } from 'storybook-solidjs';

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

import { MyComponent } from './MyComponent';

const meta = {
component: MyComponent,
decorators: [withDesign],
} satisfies Meta<typeof MyComponent>;

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@

import type { Meta, StoryObj } from 'storybook-solidjs';

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

import { MyComponent } from './MyComponent';

const meta: Meta<typeof MyComponent> = {
component: MyComponent,
decorators: [withDesign],
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
```js
// MyComponent.stories.js

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

import MyComponent from './MyComponent.svelte';

// More on default export: https://storybook.js.org/docs/svelte/writing-stories/introduction#default-export
export default {
component: { MyComponent },
decorators: [withDesign],
};

export const Example = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@

import { Canvas, Meta, Story } from '@storybook/addon-docs';

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

import MyComponent from './MyComponent.svelte';

<Meta
title="FigmaExample"
component={MyComponent}
decorators={[withDesign]}
/>

<!--
Expand Down
3 changes: 0 additions & 3 deletions docs/snippets/vue/component-story-figma-integration.js.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
```js
// MyComponent.stories.js

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

import MyComponent from './MyComponent.vue';

// More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export
export default {
component: MyComponent,
decorators: [withDesign],
};

export const Example = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@
// Replace vue3 with vue if you are using Storybook for Vue 2
import type { Meta, StoryObj } from '@storybook/vue3';

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

import MyComponent from './MyComponent.vue';

// More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export
const meta = {
component: MyComponent,
decorators: [withDesign],
} satisfies Meta<typeof MyComponent>;

export default meta;
Expand Down
3 changes: 0 additions & 3 deletions docs/snippets/vue/component-story-figma-integration.ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@
// Replace vue3 with vue if you are using Storybook for Vue 2
import type { Meta, StoryObj } from '@storybook/vue3';

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

import MyComponent from './MyComponent.vue';

// More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export
const meta: Meta<typeof MyComponent> = {
component: MyComponent,
decorators: [withDesign],
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
```js
// MyComponent.stories.js

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

export default {
component: 'my-component',
decorators: [withDesign],
};

export const Example = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@

import type { Meta, StoryObj } from '@storybook/web-components';

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

const meta: Meta = {
component: 'my-component',
decorators: [withDesign],
};

export default meta;
Expand Down