File

buttons/app-nav-button/src/lib/app-nav-button.component.ts

Description

Apps Card Component

Metadata

Index

Inputs

Inputs

description
Type : string
Required :  true

Description of the card

icon
Type : string
Required :  true

URL for the icon

link
Type : string
Required :  true

Link of the card

tagline
Type : string
Required :  true

Title of the card

import { ChangeDetectionStrategy, Component, input } from '@angular/core';
import { MatRippleModule } from '@angular/material/core';
import { HraCommonModule } from '@hra-ui/common';

/** Apps Card Component */
@Component({
  selector: 'hra-app-nav-button',
  imports: [HraCommonModule, MatRippleModule],
  templateUrl: './app-nav-button.component.html',
  styleUrl: './app-nav-button.component.scss',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AppNavButtonComponent {
  /** URL for the icon */
  readonly icon = input.required<string>();
  /** Title of the card */
  readonly tagline = input.required<string>();
  /** Description of the card */
  readonly description = input.required<string>();
  /** Link of the card */
  readonly link = input.required<string>();
}
<a matRipple hraFeature="app-nav" hraClickEvent target="_blank" rel="noopener noreferrer" [attr.href]="link()">
  <img class="icon" alt="" [attr.src]="icon()" />
  <span class="tagline">{{ tagline() }}</span>
  <span class="description">{{ description() }}</span>
</a>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""