From 1ef57ecc59d16e5523c27861b5143fac3dcad91c Mon Sep 17 00:00:00 2001 From: jonniebigodes Date: Fri, 13 May 2022 15:45:36 +0100 Subject: [PATCH] addressed feedback --- docs/configure/sidebar-and-urls.md | 4 ++-- ...ry.js.mdx => component-story-auto-title.csf3-story.js.mdx} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename docs/snippets/common/{omponent-story-auto-title.csf3-story.js.mdx => component-story-auto-title.csf3-story.js.mdx} (88%) diff --git a/docs/configure/sidebar-and-urls.md b/docs/configure/sidebar-and-urls.md index a7ba699666b..769518e14e9 100644 --- a/docs/configure/sidebar-and-urls.md +++ b/docs/configure/sidebar-and-urls.md @@ -60,7 +60,7 @@ Storybook will prioritize the `id` over the title for ID generation if provided ## CSF 3.0 auto-titles -Storybook 6.4 introduced CSF 3.0 as an experimental feature, allowing you to write stories more compactly. Suppose you're already using this format to write your stories. In that case, you can omit the `title` element from the default export and allow Storybook automatically infer it based on the file's physical location. For example, given the following configuration and story: +Storybook 6.4 introduced [CSF 3.0](https://storybook.js.org/blog/component-story-format-3-0/) as an experimental feature, allowing you to write stories more compactly. Suppose you're already using this format to write your stories. In that case, you can omit the `title` element from the default export and allow Storybook automatically infer it based on the file's physical location. For example, given the following configuration and story: @@ -73,7 +73,7 @@ Storybook 6.4 introduced CSF 3.0 as an experimental feature, allowing you to wri -When Storybook loads, the story can show up in the sidebar as `components/My Component`. While accurate for most cases, it could lead to naming issues when loaded. +When Storybook loads, the story can show up in the sidebar as `components/My Component`. ### Auto-title filename case diff --git a/docs/snippets/common/omponent-story-auto-title.csf3-story.js.mdx b/docs/snippets/common/component-story-auto-title.csf3-story.js.mdx similarity index 88% rename from docs/snippets/common/omponent-story-auto-title.csf3-story.js.mdx rename to docs/snippets/common/component-story-auto-title.csf3-story.js.mdx index f472f96b1d2..74c50e85077 100644 --- a/docs/snippets/common/omponent-story-auto-title.csf3-story.js.mdx +++ b/docs/snippets/common/component-story-auto-title.csf3-story.js.mdx @@ -11,6 +11,6 @@ import { MyComponent } from './MyComponent'; export default { component: MyComponent }; export const Default = { - args: { something: 'Something else' }, + args: { message: 'Hello world!' }, }; ``` \ No newline at end of file