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.



npm install @coreui/react @coreui/coreui
npm install @coreui/react-pro @coreui/coreui-pro


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';


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#

npm install bootstrap
Basic usage#
import 'bootstrap/dist/css/bootstrap.min.css'