# CoreUI JavaScript documentation > Open Source UI Components library built on top of Bootstrap 5. --- # Introduction > CoreUI is the fastest way to build a modern dashboard for any platforms, browser, or device. A complete UI Kit that allows you to quickly build eye-catching, high-quality, high-performance responsive applications. ## CoreUI vs Bootstrap CoreUI is fully compatible with Bootstrap, but it’s more than just a theme or UI extension — it’s a professionally developed and maintained system that addresses many of the limitations developers face with Bootstrap alone. **Key differences between CoreUI and Bootstrap:** * ✅ **Framework-native versions** – CoreUI offers official libraries for [React.js](https://coreui.io/react/), [Vue.js](https://coreui.io/vue/), and [Angular](https://coreui.io/angular/), while Bootstrap depends on third-party community plugins for framework integration. * 👨‍💻 **Full-time maintained project** – CoreUI is not a community-only initiative. It’s developed by a dedicated, full-time team focused on long-term evolution and support. * 📦 **More built-in components** – CoreUI includes many components not present in Bootstrap by default, such as range sliders, multi-selects, and step-based form wizards. * 🛠️ **Sass Modules support today** – CoreUI already supports Sass Modules out of the box, a feature that Bootstrap plans to introduce in version 6. * 🌍 **Modern RTL/LTR support** – CoreUI uses CSS logical properties to provide seamless RTL and LTR layout support for multilingual and internationalized apps. * 🔒 **Long-Term Support (LTS)** – While Bootstrap 3 & 4 LTS is now a paid service via [HeroDevs](https://www.herodevs.com/support/nes-bootstrap?utm_source=Bootstrap_site&utm_medium=Banner&utm_campaign=v3and4_eol), CoreUI continues to offer long-term support without additional cost. Whether you're starting a new project or migrating from Bootstrap, CoreUI gives you a powerful upgrade path with more features, framework bindings, and peace of mind for long-term maintainability. ## Quick start Looking to quickly add CoreUI for Bootstrap to your project? Use jsDelivr, a free open source CDN. Using a package manager or need to download the source files? [Head to the downloads page](https://coreui.io/bootstrap/docs/getting-started/download/). CoreUI was created as an extension to Bootstrap, allowing it to be used both as a standalone library and as a replacement for the currently utilized Bootstrap in your project. ### CSS Copy-paste the stylesheet `` into your `` before all other stylesheets to load our CSS. ```html tab={"label":"CoreUI"} ``` ```html tab={"label":"CoreUI PRO"} ``` ### JS Many of our components require the use of JavaScript to function. Specifically, they require our own JavaScript plugins and [Popper](https://popper.js.org/). Place **one of the following ` ``` ```html tab={"label":"CoreUI PRO"} ``` #### Separate If you decide to go with the separate scripts solution, Popper must come first (if you're using tooltips or popovers), and then our JavaScript plugins. ```html tab={"label":"CoreUI"} ``` ```html tab={"label":"CoreUI PRO"} ``` #### Modules If you use ` ``` ```html tab={"label":"CoreUI PRO"} ``` #### Separate If you decide to go with the separate scripts solution, Popper must come first (if you're using tooltips or popovers), and then our JavaScript plugins. ```html tab={"label":"CoreUI"} ``` ```html tab={"label":"CoreUI PRO"} ``` ## Starter template Be sure to have your pages set up with the latest design and development standards. That means using an HTML5 doctype and including a viewport meta tag for proper responsive behaviors. Put it all together and your pages should look like this: ```html tab={"label":"CoreUI"} Hello, world!

Hello, world!

``` ```html tab={"label":"CoreUI PRO"} Hello, world!

Hello, world!

``` For next steps, visit the [Layout docs](https://coreui.io/bootstrap/docs/layout/grid/) to start laying out your site's content and components. ## Important globals CoreUI for Bootstrap employs a handful of important global styles and settings that you'll need to be aware of when using it, all of which are almost exclusively geared towards the *normalization* of cross browser styles. Let's dive in. ### HTML5 doctype CoreUI for Bootstrap requires the use of the HTML5 doctype. Without it, you'll see some funky incomplete styling, but including it shouldn't cause any considerable hiccups. ```html ... ``` ### Responsive meta tag CoreUI for Bootstrap is developed *mobile first*, a strategy in which we optimize code for mobile devices first and then scale up components as necessary using CSS media queries. To ensure proper rendering and touch zooming for all devices, **add the responsive viewport meta tag** to your ``. ```html ``` You can see an example of this in action in the [starter template](#starter-template). ### Box-sizing For more straightforward sizing in CSS, we switch the global `box-sizing` value from `content-box` to `border-box`. This ensures `padding` does not affect the final computed width of an element, but it can cause problems with some third-party software like Google Maps and Google Custom Search Engine. On the rare occasion you need to override it, use something like the following: ```css .selector-for-some-widget { box-sizing: content-box; } ``` With the above snippet, nested elements—including generated content via `::before` and `::after`—will all inherit the specified `box-sizing` for that `.selector-for-some-widget`. Learn more about [box model and sizing at CSS Tricks](https://css-tricks.com/box-sizing/). ### Reboot For improved cross-browser rendering, we use [Reboot](https://coreui.io/bootstrap/docs/content/reboot/) to correct inconsistencies across browsers and devices while providing slightly more opinionated resets to common HTML elements. ## Community Stay up to date on the development of CoreUI and reach out to the community with these helpful resources. - Read and subscribe to [The Official CoreUI Blog](https://coreui.io/blog/). - Ask questions and explore [our GitHub Discussions]the official Community). - Discuss, ask questions, and more on [the community Discord](https://discord.gg/TsFcCgkG). You can also follow [@core_ui on X (Twitter)](https://x.com/core_ui). --- # Download > Download CoreUI for Bootstrap to get the compiled CSS and JavaScript, source code, or include it with your favorite package managers like npm, RubyGems, and more. ## Compiled CSS and JS Download ready-to-use compiled code for **CoreUI for Bootstrap v5.8.0** to easily drop into your project, which includes: - Compiled and minified CSS bundles (see [CSS files comparison](https://coreui.io/bootstrap/docs/getting-started/contents/#css-files)) - Compiled and minified JavaScript plugins (see [JS files comparison](https://coreui.io/bootstrap/docs/getting-started/contents/#js-files)) This doesn't include documentation, source files, or any optional JavaScript dependencies like Popper. Download ## Source files Compile CoreUI for Bootstrap with your own asset pipeline by downloading our source Sass, JavaScript, and documentation files. This option requires some additional tooling: - Sass compiler (Libsass or Ruby Sass is supported) for compiling your CSS. - [Autoprefixer](https://github.com/postcss/autoprefixer) for CSS vendor prefixing Should you require [build tools](https://coreui.io/bootstrap/docs/getting-started/build-tools/#tooling-setup), they are included for developing CoreUI for Bootstrap and its docs, but they're likely unsuitable for your own purposes. Download source ## CDN via jsDelivr Skip the download with [jsDelivr](https://www.jsdelivr.com/) to deliver cached version of CoreUI's compiled CSS and JS to your project. ```html ``` If you're using our compiled JavaScript and prefer to include Popper separately, add Popper before our JS, via a CDN preferably. ```html ``` **If you use CoreUI PRO please use following links** ```html ``` ```html ``` ## Package managers Pull in CoreUI's **source files** into nearly any project with some of the most popular package managers. No matter the package manager, CoreUI for Bootstrap will **require a Sass compiler and [Autoprefixer](https://github.com/postcss/autoprefixer)** for a setup that matches our official compiled versions. ### npm Install CoreUI for Bootstrap in your Node.js powered apps with [the npm package](https://www.npmjs.com/package/@coreui/coreui): ```sh tab={"label":"CoreUI"} npm install @coreui/coreui ``` ```sh tab={"label":"CoreUI PRO"} npm install @coreui/coreui-pro ``` `const coreui = require('@coreui/coreui')` or `import coreui from '@coreui/coreui'` will load all of CoreUI's plugins onto a `coreui` object. The `coreui` module itself exports all of our plugins. You can manually load CoreUI's plugins individually by loading the `/js/dist/*.js` files under the package's top-level directory. CoreUI's `package.json` contains some additional metadata under the following keys: - `sass` - path to CoreUI's main [Sass](https://sass-lang.com/) source file - `style` - path to CoreUI's non-minified CSS that's been precompiled using the default settings (no customization) ### yarn Install CoreUI in your Node.js powered apps with [the yarn package](https://yarnpkg.com/en/package/@coreui/coreui): ```sh tab={"label":"CoreUI"} yarn add @coreui/coreui ``` ```sh tab={"label":"CoreUI PRO"} yarn add @coreui/coreui-pro ``` ### Bun Install CoreUI in your Bun or Node.js powered apps with [the Bun CLI](https://bun.sh/): ```sh tab={"label":"CoreUI"} bun add @coreui/coreui ``` ```sh tab={"label":"CoreUI PRO"} bun add @coreui/coreui-pro ``` ### Composer You can also install and manage CoreUI's Sass and JavaScript using [Composer](https://getcomposer.org/): ```sh composer require coreui/coreui:5.8.0 ``` --- # Contents > Discover what's included in CoreUI, including our precompiled and source code flavors. ## Precompiled CoreUI Once downloaded, unzip the compressed folder and you'll see something like this: ```text coreui/ ├── css/ │ ├── coreui-grid.css │ ├── coreui-grid.css.map │ ├── coreui-grid.min.css │ ├── coreui-grid.min.css.map │ ├── coreui-grid.rtl.css │ ├── coreui-grid.rtl.css.map │ ├── coreui-grid.rtl.min.css │ ├── coreui-grid.rtl.min.css.map │ ├── coreui-reboot.css │ ├── coreui-reboot.css.map │ ├── coreui-reboot.min.css │ ├── coreui-reboot.min.css.map │ ├── coreui-reboot.rtl.css │ ├── coreui-reboot.rtl.css.map │ ├── coreui-reboot.rtl.min.css │ ├── coreui-reboot.rtl.min.css.map │ ├── coreui-utilities.css │ ├── coreui-utilities.css.map │ ├── coreui-utilities.min.css │ ├── coreui-utilities.min.css.map │ ├── coreui-utilities.rtl.css │ ├── coreui-utilities.rtl.css.map │ ├── coreui-utilities.rtl.min.css │ ├── coreui-utilities.rtl.min.css.map │ ├── coreui.css │ ├── coreui.css.map │ ├── coreui.min.css │ ├── coreui.min.css.map │ ├── coreui.rtl.css │ ├── coreui.rtl.css.map │ ├── coreui.rtl.min.css │ └── coreui.rtl.min.css.map └── js/ ├── coreui.bundle.js ├── coreui.bundle.js.map ├── coreui.bundle.min.js ├── coreui.bundle.min.js.map ├── coreui.esm.js ├── coreui.esm.js.map ├── coreui.esm.min.js ├── coreui.esm.min.js.map ├── coreui.js ├── coreui.js.map ├── coreui.min.js └── coreui.min.js.map ``` This is the most basic form of CoreUI: precompiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (`coreui.*`), as well as compiled and minified CSS and JS (`coreui.min.*`). [source maps](https://developers.google.com/web/tools/chrome-devtools/javascript/source-maps) (`coreui.*.map`) are available for use with certain browsers' developer tools. Bundled JS files (`coreui.bundle.js` and minified `coreui.bundle.min.js`) include [Popper](https://popper.js.org/). ## CSS files CoreUI for Bootstrap includes a handful of options for including some or all of our compiled CSS.
CSS files Layout Content Components Utilities
coreui.css
coreui.rtl.css
coreui.min.css
coreui.rtl.min.css
Included Included Included Included
coreui-grid.css
coreui-grid.rtl.css
coreui-grid.min.css
coreui-grid.rtl.min.css
Only grid system Only flex utilities
coreui-utilities.css
coreui-utilities.rtl.css
coreui-utilities.min.css
coreui-utilities.rtl.min.css
Included
coreui-reboot.css
coreui-reboot.rtl.css
coreui-reboot.min.css
coreui-reboot.rtl.min.css
Only Reboot
## JS files Similarly, we have options for including some or all of our compiled JavaScript.
JS files Popper
coreui.bundle.js
coreui.bundle.min.js
Included
coreui.js
coreui.min.js
## CoreUI source code The CoreUI for Bootstrap source code download includes the precompiled CSS and JavaScript assets, along with source Sass, JavaScript, and documentation. More specifically, it includes the following and more: ```text coreui/ ├── dist/ │ ├── css/ │ └── js/ ├── docs/ │ └──content/ ├── js/ └── scss/ ``` The `scss/` and `js/` are the source code for our CSS and JavaScript. The `dist/` folder includes everything listed in the precompiled download section above. The `docs/` folder includes the source code for our documentation. Beyond that, any other included file provides support for packages, license information, and development. --- # Browsers and devices > Learn about the browsers and devices, from modern to old, that are supported by Bootstrap, including known quirks and bugs for each. ## Supported browsers CoreUI for Bootstrap supports the **latest, stable releases** of all major browsers and platforms. Alternative browsers which use the latest version of WebKit, Blink, or Gecko, whether directly or via the platform's web view API, are not explicitly supported. However, CoreUI for Bootstrap should (in most cases) display and function correctly in these browsers as well. More specific support information is provided below. You can find our supported range of browsers and their versions [in our `.browserslistrc file`](https://github.com/coreui/coreui/blob/v5.8.0/.browserslistrc): ```text # https://github.com/browserslist/browserslist#readme >= 0.5% last 2 major versions not dead Chrome >= 60 Firefox >= 60 Firefox ESR iOS >= 12 Safari >= 12 not Explorer <= 11 not kaios <= 2.5 # fix floating label issues in Firefox (see https://github.com/postcss/autoprefixer/issues/1533) ``` We use [Autoprefixer](https://github.com/postcss/autoprefixer) to handle intended browser support via CSS prefixes, which uses [Browserslist](https://github.com/browserslist/browserslist) to manage these browser versions. Consult their documentation for how to integrate these tools into your projects. ### Mobile devices Generally speaking, CoreUI for Bootstrap supports the latest versions of each major platform's default browsers. Note that proxy browsers (such as Opera Mini, Opera Mobile's Turbo mode, UC Browser Mini, Amazon Silk) are not supported. | | Chrome | Firefox | Safari | Android Browser & WebView | | --- | --- | --- | --- | --- | | **Android** | Supported | Supported | | v6.0+ | | **iOS** | Supported | Supported | Supported | | ### Desktop browsers Similarly, the latest versions of most desktop browsers are supported. | | Chrome | Firefox | Microsoft Edge | Opera | Safari | | --- | --- | --- | --- | --- | --- | | **Mac** | Supported | Supported | Supported | Supported | Supported | | **Windows** | Supported | Supported | Supported | Supported | | For Firefox, in addition to the latest normal stable release, we also support the latest [Extended Support Release (ESR)](https://www.mozilla.org/en-US/firefox/enterprise/) version of Firefox. Unofficially, CoreUI for Bootstrap should look and behave well enough in Chromium and Chrome for Linux, and Firefox for Linux, though they are not officially supported. ## Internet Explorer Internet Explorer is not supported. **If you require Internet Explorer support, please use CoreUI v3.** ## Modals and dropdowns on mobile ### Overflow and scrolling Support for `overflow: hidden;` on the `` element is quite limited in iOS and Android. To that end, when you scroll past the top or bottom of a modal in either of those devices' browsers, the `` content will begin to scroll. See [Chrome bug #175502](https://bugs.chromium.org/p/chromium/issues/detail?id=175502) (fixed in Chrome v40) and [WebKit bug #153852](https://bugs.webkit.org/show_bug.cgi?id=153852). ### iOS text fields and scrolling As of iOS 9.2, while a modal is open, if the initial touch of a scroll gesture is within the boundary of a textual `` or a ` ``` To set a custom height on your ` ``` ## Selects Other than `.form-control`, floating labels are only available on `.form-select`s. They work in the same way, but unlike ``s, they'll always show the `