Introduction
New Year sale. Skyrocket your business in 2025!
Extra 25% off for all sale items + Free CoreUI Icons PRO with every order!
Limited-time offer for the first 100 customers in 2025. Use code 2025SKY25 at checkout.
Limited-time offer for the first 100 customers in 2025. Use code 2025SKY25 at checkout.
CoreUI for React.js is UI Component library written in TypeScript, and ready for your next React.js project. Learn how to include CoreUI for React.js in your project.
On this page
Installation#
Npm#
npm install @coreui/react @coreui/coreui
npm install @coreui/react-pro @coreui/coreui-pro
Yarn#
yarn add @coreui/react @coreui/coreui
yarn add @coreui/react-pro @coreui/coreui-pro
Using components#
import { CAlert } from '@coreui/react';
import { CAlert } from '@coreui/react-pro';
Stylesheets#
React components are styled using the @coreui/coreui
or @coreui/coreui-pro
CSS library, but you can also use them with the bootstrap CSS library. That is possible because the @coreui/coreui
library is compatible with Bootstrap, it just extends its functionalities. The only exceptions are custom CoreUI and CoreUI PRO components, which don't exist in the Bootstrap ecosystem.
CoreUI and CoreUI PRO CSS files#
Basic usage#
import '@coreui/coreui/dist/css/coreui.min.css'
import '@coreui/coreui-pro/dist/css/coreui.min.css'
Bootstrap CSS files#
Installation#
npm install bootstrap
Basic usage#
import 'bootstrap/dist/css/bootstrap.min.css'