Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 1.87 KB

File metadata and controls

67 lines (48 loc) · 1.87 KB

@acpaas-ui/ngx-layout

A header component with logo.

Usage

import { HeaderModule } from '@acpaas-ui/ngx-layout';

Documentation

Visit our documentation site for full how-to docs and guidelines

API

Component

Name Default value Description
@Input() hasLogo: Boolean; false Whether there is a logo or not in the header. Also sets the has-logo class.
@Input() hasContent: Boolean; false Whether there is content or not in the header.

Available directives

  • auiHeaderContent
  • auiHeaderLogo
  • auiHeaderMenuItem

The main (or only) functionality of these directives is helping you laying out your header.

Example

import { HeaderModule } from '@acpaas-ui/ngx-layout';

@NgModule({
    imports: [
        HeaderModule
    ]
});

export class AppModule {};

Note that the example below makes use of the Antwerp UI logo component and Antwerp UI icon component.

<aui-header>
  <div auiHeaderLogo>
    <aui-logo title="Antwerp logo." src="./assets/a-logo.svg" [link]="'/'"></aui-logo>
  </div>
  <div auiHeaderContent><!-- Optional --></div>
  <div auiHeaderMenuItem>
    <a
      href="http://github.com/digipolisantwerp/antwerp-ui_angular"
      class="a-button--text o-header__button has-icon-left"
    >
      <aui-icon name="ai-developer-community-github-1"></aui-icon>GitHub
    </a>
  </div>
</aui-header>

Contributing

Visit our Contribution Guidelines for more information on how to contribute.