Open source React UI components for documentation sites, built with Tailwind CSS.
npm install @mintlify/components
# or
pnpm add @mintlify/components
# or
yarn add @mintlify/components- Node.js >= 20.0.0
- React ^18.0.0 or ^19.0.0
- Tailwind CSS v3 or v4
Import the styles at the top of your main CSS file, before @import "tailwindcss":
@import "@mintlify/components/styles.css";
@import "tailwindcss";
@theme {
--color-primary: #your-color;
}Import the styles at the top of your main CSS file:
@import "@mintlify/components/styles.css";
@tailwind base;
@tailwind components;
@tailwind utilities;Override theme values in tailwind.config.js.
Note: Importing styles before Tailwind ensures your custom theme values take precedence over the component defaults.
Import components in your React files:
import { Accordion, Callout, CodeBlock, Tabs } from '@mintlify/components';import { Callout } from '@mintlify/components';
const App = () => {
return (
<Callout type="info" title="Note">
This is an informational callout.
</Callout>
);
}We welcome contributions! Please see our Contributing Guide for details.
For local development setup, see Development.
MIT License - see LICENSE for details.