SkillByAIOpen interactive version →

Lesson 16 / 25

Documentation Best Practices

Write living component documentation with MDX, DocsPage and auto-generated prop tables from your stories and JSDoc.

MDX documentation

Use MDX to write rich, interactive documentation pages that combine Markdown text with live component examples.

MDX documentation page

Here's an example of a documentation page in MDX format.

# Button Component

The Button component is used for user interactions.

## Usage

<Canvas of={ButtonStories.Primary} />

## Props

<ArgTypes of={Button} />

API documentation

Automatically generate prop tables and API documentation using JSDoc comments and the DocsPage feature.