From 6748ceae67c0f8dc10f89802d345a83cf4c5f4f6 Mon Sep 17 00:00:00 2001 From: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> Date: Tue, 7 Apr 2020 06:59:50 +0200 Subject: [PATCH] Update storybook.md (#23374) --- contribute/style-guides/storybook.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contribute/style-guides/storybook.md b/contribute/style-guides/storybook.md index 04e833b74be..993b3621057 100644 --- a/contribute/style-guides/storybook.md +++ b/contribute/style-guides/storybook.md @@ -101,7 +101,10 @@ import { MyComponent } from "./MyComponent"; ### MDX file without a relationship to a component -An MDX file can exist by itself without any connection to a story. This can be good for writing things such as a general guidelines page. Something that is required when the MDX file has no relation to a component is a `Meta` tag that says where in the hierarchy the component will live. It can look like this: +An MDX file can exist by itself without any connection to a story. This can be good for writing things such as a general guidelines page. Two things are required for this to work: + +- The file needs to be named `*.story.mdx` +- A `Meta` tag must exist that says where in the hierarchy the component lives. It can look like this: ```jsx