Skip to content

Components

Components

Doccupine includes a rich set of built-in components you can use directly in your MDX files - no imports needed. Browse the full library below.

Headers and Text

Headings, paragraphs, bold, italic, links, and other text formatting.

Keyboard Shortcuts

Key caps that match the reader's keyboard, with Mac and Windows variants.

Lists and Tables

Ordered lists, unordered lists, and data tables.

Code

Inline code, fenced code blocks, and syntax highlighting.

Install

Install commands for npm, pnpm, yarn, and bun, in the reader's package manager.

Prompt

Pre-built AI prompts readers can copy or open in Cursor.

Callouts

Highlighted blocks for tips, warnings, and important notes.

Accordion

Collapsible sections for organizing lengthy content.

Tabs

Tabbed interfaces for grouping related content.

Views

One page for several frameworks or languages, with a selector readers remember.

Steps

Numbered step-by-step guides and walkthroughs.

Tree

File and folder structures with collapsible nodes and keyboard navigation.

Cards

Visual containers for content, icons, and links.

GitHub Card

A repository's description, stars, and forks, fetched at build time.

Buttons

Action components with variants, sizes, and icons.

Badges

Colored labels for statuses, versions, and metadata.

Tooltips

Contextual definitions and explanations shown on hover.

Images and Embeds

Images, videos, and embedded content.

Frames

Bordered containers with captions for images, videos, and diagrams.

Preview

Live examples on a stage, with their source code underneath.

Icons

Lucide icons you can use anywhere in your docs.

Columns

Grid layouts for arranging cards and content side by side.

Side Panel

Pinned right-rail content that replaces a page's table of contents.

Fields

Property and parameter documentation blocks.

API playground

Interactive API reference where readers send real requests and see live responses.

API Examples

Request and response examples pinned beside a hand-written API page.

Update

Changelog blocks with a subscribable RSS feed.

Color Swatches

Visual color palette swatches to document your theme colors.

Mermaid

Flowcharts, sequence diagrams, and other visualizations from Mermaid syntax.

Visibility

Content only for readers of the page, or only for AI tools.

Space

Precise vertical or horizontal gaps, with per-breakpoint control.