1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-31 00:33:33 +00:00
Files
browser/libs/components/src/card/card.component.ts
Bryan Cunningham f452f39f3c [CL-847] Card consolidation (#16952)
* 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
2025-10-27 11:14:42 -04:00

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 {}