mirror of
https://github.com/bitwarden/browser
synced 2026-02-21 03:43:58 +00:00
Add new bit-header component to libs/components with: - Header component with left, center, and right content projection - Storybook stories for documentation - Export from component library index
20 lines
431 B
TypeScript
20 lines
431 B
TypeScript
import { ChangeDetectionStrategy, Component, input } from "@angular/core";
|
|
|
|
@Component({
|
|
selector: "bit-header",
|
|
templateUrl: "./header.component.html",
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
standalone: true,
|
|
})
|
|
export class HeaderComponent {
|
|
/**
|
|
* The title of the page
|
|
*/
|
|
readonly title = input.required<string>();
|
|
|
|
/**
|
|
* Icon to show before the title
|
|
*/
|
|
readonly icon = input<string>();
|
|
}
|