CoreUI for Angular

website·Indexed 37 days ago

https://coreui.io/angular/docs/

A UI component library written in TypeScript for Angular. It provides a comprehensive set of responsive components including a flexbox grid system, form controls, navigation elements (Navbar, Breadcrumbs), and interactive components like Modals, Accordions, and Date Pickers. The library supports customization via CSS variables and SASS, and includes an MCP server for AI coding assistant integration.

Tokens
48.1K
Snippets
291
Records
412
Agent score
72%

What's inside CoreUI

  1. Overview of Angular Autocomplete Component

    The CoreUI Angular Autocomplete component provides an intelligent suggestion dropdown for input fields. It supports real-time filtering, external API integration, custom templates for options and groups, and is designed with accessibility-first principles. It was added in version 5.5.20.
  2. Update template layout for CoreUI Angular v5

    The default layout structure in src/app/layout/default-layout/ has changed between v4 and v5. Notable changes include the introduction of c-sidebar-header, c-sidebar-footer, app-header, app-footer, and app-aside. The c-sidebar-toggler component has been replaced by the cSidebarToggler directive.
  3. Use the Angular Form Check component

    The c-form-check component is used to create consistent checkboxes, radio buttons, and toggle switches.

    • Checkboxes: Used for selecting one or several options.
    • Radios: Used for selecting one option from many.
    • Switches: Rendered by setting the switch property to true on a checkbox markup.
    • Toggle Buttons: Created by adding the button property to c-form-check.
    import { FormCheckComponent } from '@coreui/angular'
  4. Install CoreUI Angular Chart.js wrapper

    To use the CoreUI Angular wrapper for Chart.js 4.x, you must install the base Chart.js library, the CoreUI tooltip plugin/styles, and the Angular component wrapper.
    # Option 1: Using Angular CLI
    ng add @coreui/angular-chartjs@5.7
    
    # Option 2: Using NPM
    npm install chart.js@4
    npm install @coreui/chartjs@4
    npm install @coreui/angular-chartjs@5.7
  5. Import FormModule for CoreUI components

    To use CoreUI form components within a module-based Angular application, import the FormModule from @coreui/angular into your NgModule.
    import { NgModule } from '@angular/core';
    import { FormModule } from '@coreui/angular';
    
    @NgModule({
      imports: [FormModule]
    })
    export class CustomAppModule {}