Logo

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

ComponentDescription
CalloutHighlight important information, warnings, or errors
Code BlockSyntax-highlighted code with copy & title support
File TreeVisualize directory and file structures
TablesStyled 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