Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Clean up unnecessary empty lines
  • Loading branch information
kylegach committed Sep 25, 2025
commit c9cc145796ce553d68905a6e282e028b42e2dbe4
1 change: 0 additions & 1 deletion docs/_snippets/addon-a11y-config-in-meta-and-story.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

parameters: {
a11y: {
/*
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/addon-a11y-parameter-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

parameters: {
// 👇 Applies to all stories in this file
a11y: { test: 'error' },
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/addon-a11y-parameter-todo-in-meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ import { DataTable } from './DataTable';

const meta = preview.meta({
component: DataTable,

parameters: {
// 👇 This component's accessibility tests will not fail
// Instead, they display warnings in the Storybook UI
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/addon-a11y-register.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ import { defineMain } from '@storybook/your-framework/node';
export default defineMain({
// Replace your-framework with the framework you are using (e.g., react-vite, nextjs, nextjs-vite)
framework: '@storybook/your-framework',

stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],

addons: [
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/addon-actions-action-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ import Button from './Button';

const meta = preview.meta({
component: Button,

args: {
// 👇 Create an action that appears when the onClick event is fired
onClick: action('on-click'),
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/addon-backgrounds-define-globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

globals: {
// 👇 Set background value for all component stories
backgrounds: { value: 'gray', grid: false },
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/addon-backgrounds-grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

parameters: {
backgrounds: {
grid: {
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/addon-backgrounds-options-in-meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

parameters: {
backgrounds: {
options: {
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/addon-viewport-configuration-in-meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ import { MyComponent } from './MyComponent';

const meta = preview.meta({
component: MyComponent,

parameters: {
viewport: {
//👇 Set available viewports for every story in the file
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/addon-viewport-define-globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

globals: {
// 👇 Set viewport for all component stories
viewport: { value: 'tablet', isRotated: false },
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/api-doc-block-argtypes-parameter.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

parameters: {
docs: {
controls: { exclude: ['style'] },
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/api-doc-block-controls-parameter.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

parameters: {
docs: {
controls: { exclude: ['style'] },
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/api-doc-block-description-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

parameters: {
docs: {
description: {
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/arg-types-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ import { Example } from './Example';

const meta = preview.meta({
component: Example,

argTypes: {
value: {
control: {
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/arg-types-default-value.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ import { Example } from './Example';

const meta = preview.meta({
component: Example,

argTypes: {
value: {
// ⛔️ Deprecated, do not use
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/arg-types-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ import { Example } from './Example';

const meta = preview.meta({
component: Example,

argTypes: {
value: {
description: 'The value of the slider',
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/arg-types-if.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@ import { Example } from './Example';

const meta = preview.meta({
component: Example,

argTypes: {
parent: { control: 'select', options: ['one', 'two', 'three'] },

Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/arg-types-in-meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

argTypes: {
// 👇 All Button stories expect a label arg
label: {
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/arg-types-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ import { Example } from './Example';

const meta = preview.meta({
component: Example,

argTypes: {
label: {
control: { type: 'select' },
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/arg-types-name.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ import { Example } from './Example';

const meta = preview.meta({
component: Example,

argTypes: {
actualArgName: {
name: 'Friendly name',
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/arg-types-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ import { Example } from './Example';

const meta = preview.meta({
component: Example,

argTypes: {
icon: {
options: ['arrow-up', 'arrow-down', 'loading'],
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/arg-types-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ import { Example } from './Example';

const meta = preview.meta({
component: Example,

argTypes: {
value: {
table: {
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/arg-types-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ import { Example } from './Example';

const meta = preview.meta({
component: Example,

argTypes: {
value: { type: 'number' },
},
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/button-story-argtypes-with-categories.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

argTypes: {
// Assigns the argTypes to the Colors category
backgroundColor: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

argTypes: {
// Assigns the argTypes to the Colors category
backgroundColor: {
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/button-story-component-decorator.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

decorators: [
(Story) => (
<div style={{ margin: '3em' }}>
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/button-story-controls-radio-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

argTypes: {
variant: {
options: ['primary', 'secondary'],
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/button-story-default-export.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ const meta = preview.meta({
* to learn how to generate automatic titles
*/
title: 'Button',

component: Button,
});
```
2 changes: 0 additions & 2 deletions docs/_snippets/button-story-disable-addon.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ const meta = preview.meta({
* to learn how to generate automatic titles
*/
title: 'Button',

component: Button,

parameters: {
myAddon: { disable: true }, // Disables the addon
},
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/button-story-grouped.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ const meta = preview.meta({
* to learn how to generate automatic titles
*/
title: 'Design System/Atoms/Button',

component: Button,
});
```
1 change: 0 additions & 1 deletion docs/_snippets/button-story-hoisted.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ const meta = preview.meta({
* to learn how to generate automatic titles
*/
title: 'Design System/Atoms/Button',

component: ButtonComponent,
});

Expand Down
2 changes: 0 additions & 2 deletions docs/_snippets/button-story-with-addon-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,7 @@ const meta = preview.meta({
* to learn how to generate automatic titles
*/
title: 'Button',

component: Button,

//👇 Creates specific parameters for the story
parameters: {
myAddon: {
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/checkbox-story-grouped.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ const meta = preview.meta({
* to learn how to generate automatic titles
*/
title: 'Design System/Atoms/Checkbox',

component: CheckBox,
});
```
1 change: 0 additions & 1 deletion docs/_snippets/code-panel-in-meta-and-story.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

parameters: {
docs: {
// 👇 Enable Code panel for all stories in this file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

argTypes: {
// Button can be passed a label or an image, not both
label: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ import { Button } from './Button';

const meta = preview.meta({
component: Button,

argTypes: {
label: { control: 'text' }, // Always shows the control
advanced: { control: 'boolean' },
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/component-story-custom-args-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ const arrows = { ArrowUp, ArrowDown, ArrowLeft, ArrowRight };

const meta = preview.meta({
component: Button,

argTypes: {
arrow: {
options: Object.keys(arrows), // An array of serializable values
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/component-story-disable-controls-alt.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ import { YourComponent } from './YourComponent';

const meta = preview.meta({
component: YourComponent,

argTypes: {
// foo is the property we want to remove from the UI
foo: {
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/component-story-disable-controls.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ import { YourComponent } from './YourComponent';

const meta = preview.meta({
component: YourComponent,

argTypes: {
// foo is the property we want to remove from the UI
foo: {
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/essential-feature-disable.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import { defineMain } from '@storybook/your-framework/node';
export default defineMain({
// Replace your-framework with the framework you are using (e.g., react-vite, nextjs, nextjs-vite)
framework: '@storybook/your-framework',

stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],

features: {
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/foo-bar-baz-story.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ const meta = preview.meta({
* to learn how to generate automatic titles
*/
title: 'Foo/Bar',

component: Foo,
});

Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/gizmo-story-controls-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,6 @@ import { Gizmo } from './Gizmo';

const meta = preview.meta({
component: Gizmo,

argTypes: {
canRotate: {
control: 'boolean',
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/interaction-test-fn-mock-spy.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ import { LoginForm } from './LoginForm';

const meta = preview.meta({
component: LoginForm,

args: {
// 👇 Use `fn` to spy on the onSubmit arg
onSubmit: fn(),
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/list-story-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@ const meta = preview.meta({
* to learn how to generate automatic titles
*/
title: 'List',

component: List,
});

Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/list-story-unchecked.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ const meta = preview.meta({
* to learn how to generate automatic titles
*/
title: 'List',

component: List,
});

Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/list-story-with-unchecked-children.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ const meta = preview.meta({
* to learn how to generate automatic titles
*/
title: 'List',

component: List,
});

Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/msw-addon-configure-handlers-graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,6 @@ const TestData = {

const meta = preview.meta({
component: DocumentScreen,

decorators: [
(Story) => (
<ApolloProvider client={mockedClient}>
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/my-component-disable-toc.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ import { MyComponent } from './MyComponent';
const meta = preview.meta({
component: MyComponent,
tags: ['autodocs'],

parameters: {
docs: {
toc: {
Expand Down
1 change: 0 additions & 1 deletion docs/_snippets/nextjs-app-directory-in-meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import NavigationBasedComponent from './NavigationBasedComponent';

const meta = preview.meta({
component: NavigationBasedComponent,

parameters: {
nextjs: {
appDirectory: true, // 👈 Set this
Expand Down
Loading
Loading