Introduction

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.

Installation#

Npm#

npm install @coreui/react@next @coreui/coreui@next

If you use CoreUI PRO version.

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

Yarn#

yarn add @coreui/react@next @coreui/coreui@next

If you use CoreUI PRO version.

yarn add @coreui/react-pro@next @coreui/coreui-pro@next

Using components#

import { CAlert } from '@coreui/react';
// CoreUI PRO version
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'
// CoreUI PRO version
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'