diff --git a/angular-cli/15-ts/after-storybook/src/stories/button.stories.ts b/angular-cli/15-ts/after-storybook/src/stories/button.stories.ts index 5c12e31418..4870e4cff9 100644 --- a/angular-cli/15-ts/after-storybook/src/stories/button.stories.ts +++ b/angular-cli/15-ts/after-storybook/src/stories/button.stories.ts @@ -13,7 +13,7 @@ const meta: Meta = { control: 'color', }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, }; diff --git a/angular-cli/default-ts/after-storybook/src/stories/button.stories.ts b/angular-cli/default-ts/after-storybook/src/stories/button.stories.ts index 5c12e31418..4870e4cff9 100644 --- a/angular-cli/default-ts/after-storybook/src/stories/button.stories.ts +++ b/angular-cli/default-ts/after-storybook/src/stories/button.stories.ts @@ -13,7 +13,7 @@ const meta: Meta = { control: 'color', }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, }; diff --git a/angular-cli/prerelease/after-storybook/src/stories/button.stories.ts b/angular-cli/prerelease/after-storybook/src/stories/button.stories.ts index 5c12e31418..4870e4cff9 100644 --- a/angular-cli/prerelease/after-storybook/src/stories/button.stories.ts +++ b/angular-cli/prerelease/after-storybook/src/stories/button.stories.ts @@ -13,7 +13,7 @@ const meta: Meta = { control: 'color', }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, }; diff --git a/angular-vite/default-ts/after-storybook/src/stories/button.stories.ts b/angular-vite/default-ts/after-storybook/src/stories/button.stories.ts index dedeca1f2e..7abad6ff8d 100644 --- a/angular-vite/default-ts/after-storybook/src/stories/button.stories.ts +++ b/angular-vite/default-ts/after-storybook/src/stories/button.stories.ts @@ -13,7 +13,7 @@ const meta: Meta = { control: 'color', }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, }; diff --git a/cra/default-js/after-storybook/src/stories/Button.stories.js b/cra/default-js/after-storybook/src/stories/Button.stories.js index 1b56021e71..86aa400d15 100644 --- a/cra/default-js/after-storybook/src/stories/Button.stories.js +++ b/cra/default-js/after-storybook/src/stories/Button.stories.js @@ -16,7 +16,7 @@ export default { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, }; diff --git a/cra/default-ts/after-storybook/src/stories/Button.stories.ts b/cra/default-ts/after-storybook/src/stories/Button.stories.ts index 66892ca93a..7408251f9f 100644 --- a/cra/default-ts/after-storybook/src/stories/Button.stories.ts +++ b/cra/default-ts/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/experimental-nextjs-vite/14-ts/after-storybook/src/stories/Button.stories.ts b/experimental-nextjs-vite/14-ts/after-storybook/src/stories/Button.stories.ts index 747e7c8b3e..7c193ddd23 100644 --- a/experimental-nextjs-vite/14-ts/after-storybook/src/stories/Button.stories.ts +++ b/experimental-nextjs-vite/14-ts/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/experimental-nextjs-vite/default-ts/after-storybook/src/stories/Button.stories.ts b/experimental-nextjs-vite/default-ts/after-storybook/src/stories/Button.stories.ts index 747e7c8b3e..7c193ddd23 100644 --- a/experimental-nextjs-vite/default-ts/after-storybook/src/stories/Button.stories.ts +++ b/experimental-nextjs-vite/default-ts/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/html-vite/default-js/after-storybook/src/stories/Button.stories.js b/html-vite/default-js/after-storybook/src/stories/Button.stories.js index 36ffffe5f2..4d5410f63d 100644 --- a/html-vite/default-js/after-storybook/src/stories/Button.stories.js +++ b/html-vite/default-js/after-storybook/src/stories/Button.stories.js @@ -21,7 +21,7 @@ export default { options: ['small', 'medium', 'large'], }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, }; diff --git a/html-vite/default-ts/after-storybook/src/stories/Button.stories.ts b/html-vite/default-ts/after-storybook/src/stories/Button.stories.ts index 1597f3c2e7..46c0fa9149 100644 --- a/html-vite/default-ts/after-storybook/src/stories/Button.stories.ts +++ b/html-vite/default-ts/after-storybook/src/stories/Button.stories.ts @@ -24,7 +24,7 @@ const meta = { options: ['small', 'medium', 'large'], }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/html-webpack/default/after-storybook/src/stories/Button.stories.js b/html-webpack/default/after-storybook/src/stories/Button.stories.js index 36ffffe5f2..4d5410f63d 100644 --- a/html-webpack/default/after-storybook/src/stories/Button.stories.js +++ b/html-webpack/default/after-storybook/src/stories/Button.stories.js @@ -21,7 +21,7 @@ export default { options: ['small', 'medium', 'large'], }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, }; diff --git a/internal/react16-webpack/after-storybook/src/stories/Button.stories.ts b/internal/react16-webpack/after-storybook/src/stories/Button.stories.ts index 66892ca93a..7408251f9f 100644 --- a/internal/react16-webpack/after-storybook/src/stories/Button.stories.ts +++ b/internal/react16-webpack/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/internal/react18-webpack-babel/after-storybook/src/stories/Button.stories.ts b/internal/react18-webpack-babel/after-storybook/src/stories/Button.stories.ts index 66892ca93a..7408251f9f 100644 --- a/internal/react18-webpack-babel/after-storybook/src/stories/Button.stories.ts +++ b/internal/react18-webpack-babel/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/nextjs-vite/14-ts/after-storybook/src/stories/Button.stories.ts b/nextjs-vite/14-ts/after-storybook/src/stories/Button.stories.ts index 747e7c8b3e..7c193ddd23 100644 --- a/nextjs-vite/14-ts/after-storybook/src/stories/Button.stories.ts +++ b/nextjs-vite/14-ts/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/nextjs-vite/default-ts/after-storybook/src/stories/Button.stories.ts b/nextjs-vite/default-ts/after-storybook/src/stories/Button.stories.ts index 747e7c8b3e..7c193ddd23 100644 --- a/nextjs-vite/default-ts/after-storybook/src/stories/Button.stories.ts +++ b/nextjs-vite/default-ts/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/nextjs/13-ts/after-storybook/stories/Button.stories.ts b/nextjs/13-ts/after-storybook/stories/Button.stories.ts index 2a05e01b06..dec6d22f74 100644 --- a/nextjs/13-ts/after-storybook/stories/Button.stories.ts +++ b/nextjs/13-ts/after-storybook/stories/Button.stories.ts @@ -17,7 +17,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/nextjs/14-ts/after-storybook/stories/Button.stories.ts b/nextjs/14-ts/after-storybook/stories/Button.stories.ts index 747e7c8b3e..7c193ddd23 100644 --- a/nextjs/14-ts/after-storybook/stories/Button.stories.ts +++ b/nextjs/14-ts/after-storybook/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/nextjs/default-js/after-storybook/src/stories/Button.stories.ts b/nextjs/default-js/after-storybook/src/stories/Button.stories.ts index 2a05e01b06..dec6d22f74 100644 --- a/nextjs/default-js/after-storybook/src/stories/Button.stories.ts +++ b/nextjs/default-js/after-storybook/src/stories/Button.stories.ts @@ -17,7 +17,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/nextjs/default-ts/after-storybook/src/stories/Button.stories.ts b/nextjs/default-ts/after-storybook/src/stories/Button.stories.ts index 747e7c8b3e..7c193ddd23 100644 --- a/nextjs/default-ts/after-storybook/src/stories/Button.stories.ts +++ b/nextjs/default-ts/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/nextjs/prerelease/after-storybook/src/stories/Button.stories.ts b/nextjs/prerelease/after-storybook/src/stories/Button.stories.ts index 747e7c8b3e..7c193ddd23 100644 --- a/nextjs/prerelease/after-storybook/src/stories/Button.stories.ts +++ b/nextjs/prerelease/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/preact-vite/default-js/after-storybook/src/stories/Button.stories.jsx b/preact-vite/default-js/after-storybook/src/stories/Button.stories.jsx index 0cc0adf6de..08c986d7dc 100644 --- a/preact-vite/default-js/after-storybook/src/stories/Button.stories.jsx +++ b/preact-vite/default-js/after-storybook/src/stories/Button.stories.jsx @@ -11,7 +11,7 @@ export default { backgroundColor: { control: 'color' }, onClick: { action: 'onClick' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, }; diff --git a/preact-vite/default-ts/after-storybook/src/stories/Button.stories.jsx b/preact-vite/default-ts/after-storybook/src/stories/Button.stories.jsx index 0cc0adf6de..08c986d7dc 100644 --- a/preact-vite/default-ts/after-storybook/src/stories/Button.stories.jsx +++ b/preact-vite/default-ts/after-storybook/src/stories/Button.stories.jsx @@ -11,7 +11,7 @@ export default { backgroundColor: { control: 'color' }, onClick: { action: 'onClick' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, }; diff --git a/react-native-web-vite/expo-ts/after-storybook/stories/Button.stories.tsx b/react-native-web-vite/expo-ts/after-storybook/stories/Button.stories.tsx index 3d532efa99..6681d7a9c2 100644 --- a/react-native-web-vite/expo-ts/after-storybook/stories/Button.stories.tsx +++ b/react-native-web-vite/expo-ts/after-storybook/stories/Button.stories.tsx @@ -17,7 +17,7 @@ const meta = { ], // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs tags: ['autodocs'], - // Use `fn` to spy on the onPress arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onPress arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onPress: fn() }, } satisfies Meta; diff --git a/react-native-web-vite/rn-cli-ts/after-storybook/stories/Button.stories.tsx b/react-native-web-vite/rn-cli-ts/after-storybook/stories/Button.stories.tsx index 3d532efa99..6681d7a9c2 100644 --- a/react-native-web-vite/rn-cli-ts/after-storybook/stories/Button.stories.tsx +++ b/react-native-web-vite/rn-cli-ts/after-storybook/stories/Button.stories.tsx @@ -17,7 +17,7 @@ const meta = { ], // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs tags: ['autodocs'], - // Use `fn` to spy on the onPress arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onPress arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onPress: fn() }, } satisfies Meta; diff --git a/react-vite/default-js/after-storybook/src/stories/Button.stories.js b/react-vite/default-js/after-storybook/src/stories/Button.stories.js index 1b56021e71..86aa400d15 100644 --- a/react-vite/default-js/after-storybook/src/stories/Button.stories.js +++ b/react-vite/default-js/after-storybook/src/stories/Button.stories.js @@ -16,7 +16,7 @@ export default { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, }; diff --git a/react-vite/default-ts/after-storybook/src/stories/Button.stories.ts b/react-vite/default-ts/after-storybook/src/stories/Button.stories.ts index 0c3151f308..b4381b29b8 100644 --- a/react-vite/default-ts/after-storybook/src/stories/Button.stories.ts +++ b/react-vite/default-ts/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/react-vite/prerelease-ts/after-storybook/src/stories/Button.stories.ts b/react-vite/prerelease-ts/after-storybook/src/stories/Button.stories.ts index 0c3151f308..b4381b29b8 100644 --- a/react-vite/prerelease-ts/after-storybook/src/stories/Button.stories.ts +++ b/react-vite/prerelease-ts/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/react-webpack/17-ts/after-storybook/src/stories/Button.stories.ts b/react-webpack/17-ts/after-storybook/src/stories/Button.stories.ts index 66892ca93a..7408251f9f 100644 --- a/react-webpack/17-ts/after-storybook/src/stories/Button.stories.ts +++ b/react-webpack/17-ts/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/react-webpack/18-ts/after-storybook/src/stories/Button.stories.ts b/react-webpack/18-ts/after-storybook/src/stories/Button.stories.ts index 66892ca93a..7408251f9f 100644 --- a/react-webpack/18-ts/after-storybook/src/stories/Button.stories.ts +++ b/react-webpack/18-ts/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/react-webpack/prerelease-ts/after-storybook/src/stories/Button.stories.ts b/react-webpack/prerelease-ts/after-storybook/src/stories/Button.stories.ts index 66892ca93a..7408251f9f 100644 --- a/react-webpack/prerelease-ts/after-storybook/src/stories/Button.stories.ts +++ b/react-webpack/prerelease-ts/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/solid-vite/default-js/after-storybook/src/stories/Button.stories.jsx b/solid-vite/default-js/after-storybook/src/stories/Button.stories.jsx index a02787dc19..16b38c62cd 100644 --- a/solid-vite/default-js/after-storybook/src/stories/Button.stories.jsx +++ b/solid-vite/default-js/after-storybook/src/stories/Button.stories.jsx @@ -16,7 +16,7 @@ export default { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, }; diff --git a/solid-vite/default-ts/after-storybook/src/stories/Button.stories.ts b/solid-vite/default-ts/after-storybook/src/stories/Button.stories.ts index 25d4858437..a7490c5bfe 100644 --- a/solid-vite/default-ts/after-storybook/src/stories/Button.stories.ts +++ b/solid-vite/default-ts/after-storybook/src/stories/Button.stories.ts @@ -18,7 +18,7 @@ const meta = { argTypes: { backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, } satisfies Meta; diff --git a/vue-cli/default-js/after-storybook/src/stories/Button.stories.js b/vue-cli/default-js/after-storybook/src/stories/Button.stories.js index 2bd009f381..c6e83c7277 100644 --- a/vue-cli/default-js/after-storybook/src/stories/Button.stories.js +++ b/vue-cli/default-js/after-storybook/src/stories/Button.stories.js @@ -11,7 +11,7 @@ export default { size: { control: { type: 'select' }, options: ['small', 'medium', 'large'] }, backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, }; diff --git a/vue3-vite/default-js/after-storybook/src/stories/Button.stories.js b/vue3-vite/default-js/after-storybook/src/stories/Button.stories.js index 2bd009f381..c6e83c7277 100644 --- a/vue3-vite/default-js/after-storybook/src/stories/Button.stories.js +++ b/vue3-vite/default-js/after-storybook/src/stories/Button.stories.js @@ -11,7 +11,7 @@ export default { size: { control: { type: 'select' }, options: ['small', 'medium', 'large'] }, backgroundColor: { control: 'color' }, }, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args args: { onClick: fn() }, }; diff --git a/vue3-vite/default-ts/after-storybook/src/stories/Button.stories.ts b/vue3-vite/default-ts/after-storybook/src/stories/Button.stories.ts index c9cf6edbe7..fafb4c8ff0 100644 --- a/vue3-vite/default-ts/after-storybook/src/stories/Button.stories.ts +++ b/vue3-vite/default-ts/after-storybook/src/stories/Button.stories.ts @@ -16,7 +16,7 @@ const meta = { }, args: { primary: false, - // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args + // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args onClick: fn(), }, } satisfies Meta;