Skip to content

Commit

Permalink
Stylistic preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegach authored Jan 22, 2025
1 parent 7bef8a2 commit baf5148
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions docs/_snippets/api-doc-block-story-parameter.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const meta = {
component: Button,
};
export default meta;

export const Basic = {
parameters: {
docs: {
Expand Down
12 changes: 6 additions & 6 deletions docs/_snippets/button-story-click-handler-simplificated.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
};

export const Text = {
args: {},
args: {/* ... */},
};
```

Expand Down Expand Up @@ -69,7 +69,7 @@ export default {
};

export const Text = {
args: {},
args: {/* ... */},
};
```

Expand Down Expand Up @@ -115,7 +115,7 @@ export default {
};

export const Text = {
args: {},
args: {/* ... */},
};
```

Expand All @@ -132,7 +132,7 @@ export default meta;
type Story = StoryObj<typeof meta>;

export const Text: Story = {
args: {},
args: {/* ... */},
};
```

Expand All @@ -149,7 +149,7 @@ export default meta;
type Story = StoryObj<typeof meta>;

export const Text: Story = {
args: {},
args: {/* ... */},
};
```

Expand Down Expand Up @@ -219,7 +219,7 @@ export default {
};

export const Text = {
args: {},
args: {/* ... */},
};
```

Expand Down
24 changes: 12 additions & 12 deletions docs/_snippets/my-component-story-mandatory-export.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const meta: Meta<MyComponent> = {
*/
title: 'Path/To/MyComponent',
component: MyComponent,
decorators: [],
parameters: {},
decorators: [/* ... */],
parameters: {/* ... */},
};

export default meta;
Expand All @@ -27,8 +27,8 @@ export default {
*/
title: 'Path/To/MyComponent',
component: MyComponent,
decorators: [],
parameters: {},
decorators: [/* ... */],
parameters: {/* ... */},
};
```

Expand All @@ -45,8 +45,8 @@ const meta = {
*/
title: 'Path/To/MyComponent',
component: MyComponent,
decorators: [],
parameters: {},
decorators: [/* ... */],
parameters: {/* ... */},
} satisfies Meta<typeof MyComponent>;

export default meta;
Expand All @@ -65,8 +65,8 @@ const meta: Meta<typeof MyComponent> = {
*/
title: 'Path/To/MyComponent',
component: MyComponent,
decorators: [],
parameters: {},
decorators: [/* ... */],
parameters: {/* ... */},
};

export default meta;
Expand All @@ -76,8 +76,8 @@ export default meta;
export default {
title: 'Path/To/MyComponent',
component: 'my-component',
decorators: [],
parameters: {},
decorators: [/* ... */],
parameters: {/* ... */},
};
```

Expand All @@ -87,8 +87,8 @@ import type { Meta } from '@storybook/web-components';
const meta: Meta = {
title: 'Path/To/MyComponent',
component: 'my-component',
decorators: [],
parameters: {},
decorators: [/* ... */],
parameters: {/* ... */},
};

export default meta;
Expand Down

0 comments on commit baf5148

Please sign in to comment.