You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/stories/src/blogs/custom-docs-pages.mdx
+123-2
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ the custom page template files must have a default export with the following fie
81
81
82
82
## Examples
83
83
84
-
1.**From component-controls/pages**
84
+
1.**From `component-controls/pages`**
85
85
86
86
Component-controls comes with a handy selection of page templates that you can use as a starting point. The only requirement is to enclose the pages in a `DocsContainer` context from `@component-controls/storybook`
You can create docs pages from the grounds up and to render the stories, you can use the context.storyFn which is the equivalent of the story decorated CSF export.
In order to embed storybook's addon-docs block elements, you need to import them from `@storybook/addon-docs/blocks` and enclose them in a `DocsContainer` container:
133
+
134
+
```js
135
+
importReactfrom'react';import { DocsContainer, Story, Preview, Source, Title } from'@storybook/addon-docs/blocks';
In order to embed component-controls own blocks, you need to enclose them in a `DocsContainer` imported from '@component-controls/storybook' and the basic blocks are to be imported from '@component-controls/blocks'
0 commit comments