#Custom docs in v6.5

2 messages · Page 1 of 1 (latest)

cedar vale
#

Hi, I'm using v6.5 and unlike v7 where .md files can be directly used which appear in docs tab of each story, I couldn't find such provision for 6.5 but only stories.mdx which creates a new story all together instead of just adding docs in the docs tab of an existing story which has the extension stories.tsx. Am I missing something or actually there is no such provision in v6.5?

solid aurora
#

Yes, that exists in Storybook 6.5. We referred to it then as "documentation-only MDX":

import { Meta } from '@storybook/addon-docs'

<Meta title="..." />

https://storybook.js.org/docs/6.5/react/writing-docs/mdx#documentation-only-mdx

MDX

Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. It’s open source and free.