UNPKG

@coreui/react

Version:

CoreUI React 17 Bootstrap 4 components

77 lines (53 loc) 3.73 kB
# CoreUI React components library [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=CoreUI%20-%20Free%20Vue%20Admin%20Template%20&url=http://coreui.io/react/&hashtags=bootstrap,admin,template,dashboard,panel,free,angular,react,vue) [![npm_latest][npm-coreui-react-badge-latest]][npm-coreui-react] [![npm next][npm-coreui-react-badge-next]][npm-coreui-react] [![NPM downloads][npm-coreui-react-download]][npm-coreui-react] [![Build](https://github.com/coreui/coreui-react/actions/workflows/project-check.yml/badge.svg)](https://github.com/coreui/coreui-react/actions/workflows/project-check.yml) [![Daily check](https://github.com/coreui/coreui-react/actions/workflows/daily-project-check.yml/badge.svg)](https://github.com/coreui/coreui-react/actions/workflows/daily-project-check.yml) [![react](https://img.shields.io/badge/react-^17.0.1-lightgrey.svg?style=flat-square&logo=react)][coreui] [npm-coreui-react-download]: https://img.shields.io/npm/dm/@coreui/react.svg?style=flat-square [npm-coreui-react]: https://www.npmjs.com/package/@coreui/react [npm-coreui-react-badge-latest]: https://img.shields.io/npm/v/@coreui/react/latest?style=flat-square [npm-coreui-react-badge-next]: https://img.shields.io/npm/v/@coreui/react/next?style=flat-square [coreui]: https://coreui.io/react ##### @coreui/react v3 for [CoreUI 3 for React](https://coreui.io/react/) ###### Over 90 bootstrap based React components and directives ##### For library guide please visit our [Documentation site »](https://coreui.io/react/docs) Check out demo of components usage: [CoreUI React Admin Template »](https://coreui.io/react/demo) ![Template](https://coreui.io/images/github/vue-free-template-3.gif) ### Installation Before installation you need to install [node and npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) on your machine. ```shell npm install @coreui/react ``` #### Styling Components are styled using @coreui/coreui CSS library, but you can use them also with bootstrap CSS library. That is possible because @coreui/coreui library is compatible with bootstrap, it just extends its functionalities. The only exception is custom CoreUI components, which don't exist in the Bootstrap ecosystem (template components, callout, switch). Styles have to be imported separately! Import [CoreUI](https://github.com/coreui/coreui) CSS library (recommended), or [Bootstrap](https://getbootstrap.com/) library Installation: ```shell npm install @coreui/coreui ``` Styles usage: ```scss @import "~@coreui/coreui/scss/coreui"; ``` ### Changelog See the GitHub [release history](https://github.com/coreui/coreui-react/releases). ### Contributing See [CONTRIBUTING.md](https://github.com/coreui/coreui-react/blob/master/CONTRIBUTING.md). ### Credits Some design ideas and solutions in this library inspired by [reactstrap library](https://reactstrap.github.io/) --- - bootstrapped with [nwb](https://github.com/insin/nwb) toolkit #### `npm run` scripts `package.json` is configured with `"scripts"` we can use with `npm run` while developing the project. Command | Description | --- | --- `npm test` | run tests `npm run test:coverage` | run tests and produce a code coverage report in `coverage/` `npm run test:watch` | start a test server and re-run tests on every change `npm run build` | prepare for publishing to npm `npm run clean` | delete built resources #### see also: - [Developing React Components and Libraries with nwb](https://github.com/insin/nwb/blob/master/docs/guides/ReactComponents.md#developing-react-components-and-libraries-with-nwb)