Components API
Detailed props reference for all components
Complete props reference for all exported components.
Layout components
Sidebar
Navigation sidebar with sections and collapsible folders.
| prop | type |
|---|---|
title | string |
logo? | ReactNode |
navigation | SidebarSection[] |
basePath? | string |
github? | string |
collapsible? | boolean |
defaultOpenLevel? | number |
SidebarSection
SidebarItem
SidebarFolder
MobileNav
Mobile navigation drawer. No props required.
Breadcrumb
Breadcrumb navigation based on current path.
| prop | type |
|---|---|
base? | string |
Toc
Table of contents sidebar.
| prop | type |
|---|---|
variant? | "default" | "minimal" |
zigzag? | boolean |
TocInline
Inline table of contents for embedding in content.
| prop | type |
|---|---|
headings | Heading[] |
title? | string |
collapsible? | boolean |
defaultOpen? | boolean |
Content components
CodeBlock
Syntax highlighted code with copy button.
| prop | type |
|---|---|
children | ReactNode |
lang? | string |
title? | string |
lines? | boolean |
CodeGroup
Tabbed code blocks for multiple examples.
| prop | type |
|---|---|
defaultValue? | string |
group? | string |
persist? | boolean |
children | ReactNode |
CodeTab
Individual tab in a code group.
| prop | type |
|---|---|
value | string |
label | string |
children | ReactNode |
Callout
Highlighted message boxes.
| prop | type |
|---|---|
type? | "info" | "warning" | "error" | "tip" | "note" |
title? | string |
children | ReactNode |
Steps
Numbered step list container.
| prop | type |
|---|---|
children | ReactNode |
Step
Individual step in a steps list.
| prop | type |
|---|---|
children | ReactNode |
Tabs
Tabbed content panels.
| prop | type |
|---|---|
items | readonly string[] |
defaultValue? | string |
children | ReactNode |
Tab
Individual tab panel.
| prop | type |
|---|---|
value | string |
children | ReactNode |
Cards
Grid of linked cards.
| prop | type |
|---|---|
children | ReactNode |
Card
Individual card in a cards grid.
| prop | type |
|---|---|
title | string |
description? | string |
href? | string |
icon? | ReactNode |
Accordion
Collapsible content sections.
| prop | type |
|---|---|
children | ReactNode |
AccordionItem
Individual accordion section.
| prop | type |
|---|---|
title | string |
children | ReactNode |
defaultOpen? | boolean |
Files
File tree display container.
| prop | type |
|---|---|
children | ReactNode |
File
File in a file tree.
| prop | type |
|---|---|
name | string |
Folder
Folder in a file tree.
| prop | type |
|---|---|
name | string |
defaultOpen? | boolean |
children? | ReactNode |
TypeTable
API property documentation table.
| prop | type |
|---|---|
data | Record<string, TypeInfo> |
TypeInfo
Utility components
Badge
Inline status badges.
| prop | type |
|---|---|
variant? | "default" | "success" | "warning" | "error" | "info" |
children | ReactNode |
Banner
Dismissible page banners.
| prop | type |
|---|---|
variant? | "default" | "rainbow" |
id? | string |
children | ReactNode |
Link
External link with indicator icon.
| prop | type |
|---|---|
href | string |
children | ReactNode |
Zoom
Image lightbox for enlarging images.
| prop | type |
|---|---|
children | ReactNode |
Tooltip
Hover hint tooltip.
| prop | type |
|---|---|
content | ReactNode |
children | ReactNode |
Github
GitHub repository info display.
| prop | type |
|---|---|
repo | string |
Video
Embedded video player.
| prop | type |
|---|---|
src | string |
title? | string |
Mermaid
Mermaid diagram renderer.
| prop | type |
|---|---|
chart | string |
ThemeToggle
Light/dark mode toggle button.
| prop | type |
|---|---|
defaultTheme? | "light" | "dark" | "system" |
BackToTop
Scroll to top button.
| prop | type |
|---|---|
threshold? | number |
Anchor
Heading with copy-link functionality.
| prop | type |
|---|---|
id | string |
children | ReactNode |
Also exported as H1, H2, H3, H4, H5, H6 with appropriate heading levels.