Components
The built-in MDX components — callouts, tabs, and code blocks — with live examples.
The built-in MDX components — callouts, tabs, and code blocks — with live examples.
Beyond Markdown, Sambadocs ships a small set of components for the things docs need most. This page shows each one rendering live — exactly how it looks on your published site.
Use <Callout> to highlight notes, tips, warnings, and errors. The
type controls the color and meaning:
The default. Carries the brand tint — good for tips and context.
For confirmations and “you’re done” moments.
For gotchas and things that need care before proceeding.
For destructive actions or hard requirements.
<Callout type="warn" title="Heads up">
Builds publish from your default branch only.
</Callout>Group alternative content — language variants, OS-specific steps — with
<Tabs> and <Tab label="…">:
npm install acme<Tabs>
<Tab label="npm">npm install acme</Tab>
<Tab label="pnpm">pnpm add acme</Tab>
</Tabs>Fenced code blocks get syntax highlighting and a copy button. Add the language after the opening fence:
export function greet(name: string): string {
return `Hello, ${name}!`;
}Inline code works with single backticks.