mirror of
https://github.com/bitwarden/browser
synced 2026-01-31 00:33:33 +00:00
* created shared card directive * WIP * use base card in anon layout * use bit-card for pricing card component * add base card to integration cards * add base card to reports cards * add base card to integration card * use card content on report card * use base card directive on base component * update dirt card to use bit-card * run prettier. fix whitespace * add missing imports to report list stories * add base card story and docs
15 lines
409 B
TypeScript
15 lines
409 B
TypeScript
import { ChangeDetectionStrategy, Component } from "@angular/core";
|
|
|
|
import { BaseCardDirective } from "./base-card/base-card.directive";
|
|
|
|
@Component({
|
|
selector: "bit-card",
|
|
template: `<ng-content></ng-content>`,
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
host: {
|
|
class: "tw-p-4 [@media(min-width:650px)]:tw-p-6",
|
|
},
|
|
hostDirectives: [BaseCardDirective],
|
|
})
|
|
export class CardComponent {}
|