Skip to content

Commit

Permalink
Remove unrelated CSF factory changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegach authored Jan 22, 2025
1 parent e00c416 commit 7bef8a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 58 deletions.
4 changes: 2 additions & 2 deletions docs/_snippets/addon-actions-action-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const meta: Meta<Button> = {
export default meta;
```

```js filename="Button.stories.js" renderer="common" language="js" tabTitle="CSF 3"
```js filename="Button.stories.js" renderer="common" language="js"
import { action } from '@storybook/addon-actions';

import Button from './Button';
Expand Down Expand Up @@ -47,7 +47,7 @@ const meta = {
export default meta;
```

```ts filename="Button.stories.ts" renderer="common" language="ts" tabTitle="CSF 3"
```ts filename="Button.stories.ts" renderer="common" language="ts"
// Replace your-framework with the name of your framework
import type { Meta } from '@storybook/your-framework';
import { action } from '@storybook/addon-actions';
Expand Down
6 changes: 3 additions & 3 deletions docs/_snippets/api-doc-block-canvas-parameter.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const Basic: Story = {
};
```

```js filename="Button.stories.js|jsx" renderer="common" language="js" tabTitle="CSF 3"
```js filename="Button.stories.js|jsx" renderer="common" language="js"
export const Basic = {
parameters: {
docs: {
Expand All @@ -29,7 +29,7 @@ export const Basic = {
};
```

```ts filename="Button.stories.ts|tsx" renderer="common" language="ts-4-9" tabTitle="CSF 3"
```ts filename="Button.stories.ts|tsx" renderer="common" language="ts-4-9"
// Replace your-framework with the name of your framework
import type { Meta, StoryObj } from '@storybook/your-framework';

Expand All @@ -51,7 +51,7 @@ export const Basic: Story = {
};
```

```ts filename="Button.stories.ts|tsx" renderer="common" language="ts" tabTitle="CSF 3"
```ts filename="Button.stories.ts|tsx" renderer="common" language="ts"
// Replace your-framework with the name of your framework
import type { Meta, StoryObj } from '@storybook/your-framework';

Expand Down
56 changes: 3 additions & 53 deletions docs/_snippets/api-doc-block-source-parameter.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const Basic: Story = {
};
```

```js filename="Button.stories.js|jsx" renderer="common" language="js" tabTitle="CSF 3"
```js filename="Button.stories.js|jsx" renderer="common" language="js"
const meta = {
component: Button,
};
Expand All @@ -35,7 +35,7 @@ export const Basic = {
};
```

```ts filename="Button.stories.ts|tsx" renderer="common" language="ts-4-9" tabTitle="CSF 3"
```ts filename="Button.stories.ts|tsx" renderer="common" language="ts-4-9"
// Replace your-framework with the name of your framework
import type { Meta, StoryObj } from '@storybook/your-framework';

Expand All @@ -57,7 +57,7 @@ export const Basic: Story = {
};
```

```ts filename="Button.stories.ts|tsx" renderer="common" language="ts" tabTitle="CSF 3"
```ts filename="Button.stories.ts|tsx" renderer="common" language="ts"
// Replace your-framework with the name of your framework
import type { Meta, StoryObj } from '@storybook/your-framework';

Expand Down Expand Up @@ -113,53 +113,3 @@ export const Basic: Story = {
},
};
```

```ts filename="Button.stories.ts|tsx" renderer="react" language="ts" tabTitle="CSF 4 (experimental)"
import config from '#.storybook/preview';

import { Button } from './Button';

const meta = config.meta({
component: Button,
});

export const Basic = meta.story({
parameters: {
docs: {
source: { language: 'tsx' },
},
},
});
```

<!-- js & ts-4-9 (when applicable) still needed while providing both CSF 3 & 4 -->

```js filename="Button.stories.js|jsx" renderer="react" language="js" tabTitle="CSF 4 (experimental)"
export const Basic = {
parameters: {
docs: {
source: { language: 'jsx' },
},
},
};
```

<!-- js & ts-4-9 (when applicable) still needed while providing both CSF 3 & 4 -->

```ts filename="Button.stories.ts|tsx" renderer="react" language="ts-4-9" tabTitle="CSF 4 (experimental)"
import config from '#.storybook/preview';

import { Button } from './Button';

const meta = config.meta({
component: Button,
});

export const Basic = meta.story({
parameters: {
docs: {
source: { language: 'tsx' },
},
},
});
```

0 comments on commit 7bef8a2

Please sign in to comment.