CoreUI for Angular is a UI Component library written in TypeScript, and ready for your next Angular project. Learn how to include CoreUI Angular Components in your project.
Installation PrerequisitesBefore you begin, make sure your development environment includes Node.jsĀ®
and an npm
package manager.
Angular 20 requires Node.js
LTS version ^20.19
, ^22.12
or ^24.0
.
node -v
in a terminal/console window.Node.js
, go to nodejs.org.The Angular CLI is a command-line interface tool that allows you to scaffold, develop, test, deploy, and maintain Angular applications directly from a command shell.
Install the Angular CLI globally using a terminal/console window.
npm install -g @angular/cli
See also: Angular setup
Angular CLICoreUI v5.5 for Angular 20 supports ng add
to install all required dependencies for your Angular project.
Npmng add @coreui/angular
Your other option is to use npm install
directly.
Using componentsnpm install @coreui/angular @coreui/coreui @coreui/icons-angular
Standalone componentsimport { AlertModule } from '@coreui/angular'; @NgModule({ imports: [AlertModule,] }) export class AppModule(){}
Starting from version 4.4.x
CoreUI Angular components are marked as standalone: true
.
Following CoreUI Angular components use @angular/animations
module for animations.
To make it work, you have to import BrowserAnimationsModule
or provideAnimationsAsync
// app.module.ts import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; ... @NgModule({ imports: [ BrowserAnimationsModule, ...
Providers// main.ts import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; bootstrapApplication(AppComponent, { providers: [ provideAnimationsAsync(), ... ] })
To ensure that the Sidebar and Dropdown functions correctly, you might need to import the required providers. Depending on the configuration of your project, this should be done in either app.module
, app.config
, or app.routes
.
Stylesheets... importProvidersFrom(SidebarModule, DropdownModule) ...
Angular 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.
Basic usagenpm install @coreui/coreui
@import "@coreui/coreui/scss/coreui";
See also: Customize CoreUI CSS
Bootstrap CSS files Installation (optional)Basic usagenpm install bootstrap
import 'bootstrap/dist/css/bootstrap.min.css'
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4