Prerequisites
Before installing Mintlify Components, make sure your environment meets these requirements:Node.js
Version 20.0.0 or higher (required by package engines)
React
Version ^18.0.0 or ^19.0.0 (peer dependency)
React DOM
Version ^18.0.0 or ^19.0.0 (peer dependency)
Tailwind CSS
Version 3.x or 4.x (for styling)
The package automatically includes all necessary dependencies like Shiki for syntax highlighting, Mermaid for diagrams, and Lucide React for icons. You don’t need to install these separately.
Install the Package
Choose your preferred package manager to install@mintlify/components:
- All 22 React components with TypeScript definitions
- Pre-built CSS styles (styles.css)
- ESM (dist/index.js) and CommonJS (dist/index.cjs) module formats
- TypeScript declarations (dist/index.d.ts)
- Syntax highlighting powered by Shiki 3.21.0
- Mermaid diagram support (v11.12.2)
- 450+ Lucide React icons
Verify Installation
After installation, verify the package is correctly installed:Package Structure
The installed package includes these exports:Available exports
Available exports
Main entry point:Styles (required):The package exports these module formats:
- ESM:
dist/index.js(primary) - CommonJS:
dist/index.cjs(compatibility) - TypeScript:
dist/index.d.ts(type definitions) - Styles:
dist/styles.css(component styles)
Component Inventory
After installation, you have access to 22 components organized by category:Layout Components (8)
Layout Components (8)
Accordion - Collapsible sections with AccordionGroup and AccordionCover
Card - Content cards with GenericCard support
Columns - Responsive grids (1-4 columns)
Expandable - Toggle content visibility
Frame - Embedded content containers
Panel - Sectioned content areas
Tabs - Tab navigation interfaces
Tile - Grid-based content blocks
Card - Content cards with GenericCard support
Columns - Responsive grids (1-4 columns)
Expandable - Toggle content visibility
Frame - Embedded content containers
Panel - Sectioned content areas
Tabs - Tab navigation interfaces
Tile - Grid-based content blocks
Content Components (6)
Content Components (6)
Callout - Info, Warning, Note, Tip, Check, Danger variants
Steps - Sequential instruction flows
Badge - Status and label indicators
Icon - Lucide React icon integration
Tooltip - Contextual overlays
Update - Version and changelog entries
Steps - Sequential instruction flows
Badge - Status and label indicators
Icon - Lucide React icon integration
Tooltip - Contextual overlays
Update - Version and changelog entries
Code Components (2)
Code Components (2)
CodeBlock - Syntax highlighting with Shiki
CodeGroup - Multi-language code examples
CodeGroup - Multi-language code examples
Data Display Components (2)
Data Display Components (2)
Property - API parameter documentation
Tree - File/folder hierarchies with TreeRoot, TreeFolder, TreeFile
Tree - File/folder hierarchies with TreeRoot, TreeFolder, TreeFile
Visualization Components (2)
Visualization Components (2)
Mermaid - Diagrams with zoom controls
Color - Color palette displays
Color - Color palette displays
Utility Components (2)
Utility Components (2)
Search - Search interface with SearchProvider and SearchButton
View - Conditional rendering
View - Conditional rendering
Bundled Dependencies
The package includes these powerful libraries out of the box:Syntax Highlighting
Syntax Highlighting
Shiki 3.21.0 - Industry-leading syntax highlighting
@shikijs/transformers 3.21.0 - Code transformation utilitiesProvides 200+ syntax themes and language support for virtually any programming language.
@shikijs/transformers 3.21.0 - Code transformation utilitiesProvides 200+ syntax themes and language support for virtually any programming language.
Accessibility
Accessibility
@base-ui/react 1.1.0 - Unstyled, accessible component primitives
@headlessui/react 2.2.0 - Accessible UI components from Tailwind LabsEnsures all components meet WCAG accessibility standards.
@headlessui/react 2.2.0 - Accessible UI components from Tailwind LabsEnsures all components meet WCAG accessibility standards.
Icons & Visualization
Icons & Visualization
lucide-react 0.453.0 - 450+ beautiful, consistent icons
mermaid 11.12.2 - Powerful diagram and flowchart renderingCreate stunning visuals without external dependencies.
mermaid 11.12.2 - Powerful diagram and flowchart renderingCreate stunning visuals without external dependencies.
Styling Utilities
Styling Utilities
tailwind-merge 2.6.0 - Intelligent Tailwind class merging
clsx 2.1.1 - Conditional className construction
color 4.2.3 - Color manipulation and conversionAdvanced styling capabilities built-in.
clsx 2.1.1 - Conditional className construction
color 4.2.3 - Color manipulation and conversionAdvanced styling capabilities built-in.
Installation complete! Next, proceed to the Setup guide to configure Tailwind CSS and start using components.
Troubleshooting
Module not found error
Module not found error
If you see
Cannot find module '@mintlify/components':-
Clear your package manager cache:
-
Delete
node_modulesand reinstall: -
Verify your Node.js version:
TypeScript errors
TypeScript errors
If you encounter TypeScript errors:
-
Ensure your
tsconfig.jsonincludes:tsconfig.json - Restart your TypeScript server in your editor
Peer dependency warnings
Peer dependency warnings
If you see peer dependency warnings, install the required dependencies:Or for React 19: