CoreUI Angular Logo
Framework:
  • JavaScript / Vanilla JS
  • React.js
  • Vue.js
Getting startedIntroductionSupport CoreUICustomizeSassOptionsCSS VariablesLayoutBreakpointsContainersGridColumnsGuttersFormsOverviewDate PickerPRODate Range PickerPROForm ControlSelectMulti SelectPROChecks & RadiosPassword InputPRORangeRange SliderPRORatingPROStepperPROInput GroupFloating LabelsLayoutTime PickerPROValidationComponentsAccordionAlertAvatarBadgeBreadcrumbButtonButton GroupCalendarPROCalloutCardCarouselClose buttonCollapseDropdownFooterHeaderImageList GroupLoading ButtonPROModalNavNavbarOffcanvasPaginationPlaceholderPopoverProgressSmart PaginationPROSmart TablePROSidebarSpinnerTableTabsNewToastTooltipWidgetsIconsChartsTemplatesNewAdmin & DashboardDownloadInstallationCustomizeContentMigrationv4 → v5v3 → v4Angular version


DownloadHire UsGet CoreUI PRO
On this page

    Angular Header Component

    Documentation and examples for Angular Header - a powerful, responsive navigation header. Includes support for branding, links, dropdowns, and more.

    Supported content

    Headers come with built-in support for a handful of sub-components. Choose from the following as needed:

    • cHeaderBrand for your company, product, or project name
    • cHeaderNav for a full-height and lightweight navigation (including support for dropdowns)
    • cHeaderToggler for use with navigation toggling
    • cHeaderText for adding vertically centered strings of text
    • cHeaderDivider to separate subheaders
    • Flex and spacing utilities for any form controls and actions

    Examples

    Here's an example of all the sub-components included in a responsive light-themed header that automatically collapses at the lg (large) breakpoint.

    BrandHomeLinkDisabledDropdown
    • Action
    • Another action

    • Something else
    Additional text
    Loading...
    Loading...
    Loading...

    API reference

    Header Module

    import { HeaderModule } from '@coreui/angular';
    
    @NgModule({
    imports: [HeaderModule,]
    })
    export class AppModule() { }
    

    c-header

    component

    Inputs
    prop description type default notes
    container Defines optional container wrapping children elements Container undefined boolean , string
    position Place a footer in non-static positions Positions undefined fixed, sticky
    role Default role for a header string header

    c-header-brand

    component

    Inputs
    prop description type default notes
    role Default role for a header-brand string button

    c-header-nav

    component

    Inputs
    prop description type default notes
    role Default role for a header-nav string navigation

    cHeaderText

    directive

    cHeaderToggler

    directive

    Inputs
    prop description type default notes
    type Default type for a header-brand string button
    aria-label Default aria-label attr for header-toggler string Toggle navigation
    • GitHub
    • Twitter
    • Support
    • CoreUI (Vanilla)
    • CoreUI for React.js
    • CoreUI for Vue.js

    CoreUI for Angular is Open Source UI Components Library for Angular.

    Currently v5.5.2 Code licensed MIT , docs CC BY 3.0 .
    CoreUI PRO requires a commercial license.