libs/design/card/examples/src/stroked-card/stroked-card.component.ts
import { NgFor } from '@angular/common';
import {
ChangeDetectionStrategy,
Component,
} from '@angular/core';
import {
UntypedFormControl,
ReactiveFormsModule,
} from '@angular/forms';
import { DAFF_CARD_COMPONENTS } from '@daffodil/design/card';
import { DAFF_IMAGE_COMPONENTS } from '@daffodil/design/image';
@Component({
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'stroked-card',
templateUrl: './stroked-card.component.html',
styleUrls: ['./stroked-card.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [
DAFF_CARD_COMPONENTS,
DAFF_IMAGE_COMPONENTS,
ReactiveFormsModule,
NgFor,
],
})
export class StrokedCardComponent {
colorControl: UntypedFormControl = new UntypedFormControl('');
options = [
{ value: '', label: 'Default' },
{ value: 'primary', label: 'Primary' },
{ value: 'secondary', label: 'Secondary' },
{ value: 'tertiary', label: 'Tertiary' },
{ value: 'theme', label: 'Theme' },
{ value: 'theme-contrast', label: 'Theme Contrast' },
{ value: 'black', label: 'Black' },
{ value: 'white', label: 'White' },
];
}