Formatting & Advanced Components
import { Tabs, TabItem, Steps } from ‘@astrojs/starlight/components’;
Starlight includes built-in support for rich technical documentation formatting.
Callouts (Admonitions)
Use three colons (:::) to create styled notification boxes:
Interactive Tabs
Use <Tabs> when presenting operating-system-specific instructions or multi-language code:
Syntax-Highlighted Code Blocks
Add language tags, file titles, and line highlights to code snippets:
// Highlighting specific lines helps draw attentionconst API_URL = "[https://api.example.com/v1](https://api.example.com/v1)";export default API_URL;