Components
Built-in tabs, API tables, steps, file trees, accordions, code blocks, and Markdown callouts.
Gittydocs includes authoring components directly in .mdx pages. No imports, package installs, or ejection are needed. Use the component names with their exact capitalization, and put Markdown content between the tags.
These JSX components belong in .mdx files. Ordinary code fences and Markdown callouts also work in .md files. Keep blank lines around Markdown paragraphs, lists, and code fences inside a component so they are parsed as Markdown.
Live example
- Write an MDX page
Add your Markdown and built-in components to a
.mdxfile. - Preview it
Run your local docs preview and open the page. The components work without imports.
Paste this directly into a page to reproduce the demo:
<Steps>
<Step title="Write an MDX page">
Add your Markdown and built-in components to a `.mdx` file.
</Step>
<Step title="Preview it">
Run your local docs preview and open the page. The components work without imports.
</Step>
</Steps>Use the individual component pages for complete prop tables and more interactive demos. Each demo is followed by a fenced example you can copy.
Markdown exports
Copy page, its Copy page as Markdown for LLMs action, and generated per-page Markdown convert built-in components into portable text:
This preserves the meaning of a page without requiring an MDX renderer. Custom JSX and imports are preserved rather than stripped or executed. Dynamic component titles or names that cannot be converted safely are left intact too.
Syntax examples stay examples: components inside fenced code blocks or inline code are not converted. Fence language and title metadata are retained. Always put demonstration source—including custom export examples—in a code fence when you want readers to see it rather than run it.
For output paths and View as Markdown, see Page actions and Markdown output.
