Components
Explore all built-in MDX components available in Docstra.
Docstra provides several built-in components that you can use directly in your MDX files to create a more engaging and informative experience.
Available Components
| Component | Description |
|---|---|
| Callout | Highlight important information, warnings, or errors |
| Code Block | Syntax-highlighted code with copy & title support |
| File Tree | Visualize directory and file structures |
| Tables | Styled markdown tables that fit the Docstra theme |
All components are available out of the box. Just use them directly in your .mdx files — no extra imports needed for most of them.
Some components like DocstraFileTree require a manual import in your mdx-components.tsx file. See each
component's page for details.
How is this guide?
Last updated on March 30, 2026