The navbar is a basic element container that will align the elements horizontally within the container. It utilizes display: flex;
and expects that its direct children will take advantage of the flexbox model to place themselves.
- Import the
DaffNavbarModule
from@daffodil/design
inside of yourAppModule
;
import { DaffNavbarModule } from '@daffodil/design';
- Add the
DaffNavbarModule
to yourimports
array inside of yourAppModule
.
@NgModule({
declarations: [
],
imports: [
DaffNavbarModule,
]
})
The color of a navbar can be changed by using the color
property. By default, the navbar uses the base color of the theme. This can be changed to one of the supported colors.
- Supported colors:
primary | secondary | tertiary | black | white
<daff-navbar>
is the template used for the navbar.
<daff-navbar>
<button>Button</button>
</daff-navbar>