1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 12:13:45 +00:00
Files
browser/libs/components/src/section/section.component.ts
Oscar Hinton 26fb7effd3 Remove standalone true from platform and UIF (#15032)
Remove standalone: true from every instance since it's the default as of Angular 19.
2025-06-02 20:03:04 +02:00

22 lines
566 B
TypeScript

import { coerceBooleanProperty } from "@angular/cdk/coercion";
import { CommonModule } from "@angular/common";
import { Component, Input } from "@angular/core";
@Component({
selector: "bit-section",
imports: [CommonModule],
template: `
<section
[ngClass]="{
'tw-mb-5 bit-compact:tw-mb-4 [&:not(bit-dialog_*):not(popup-page_*)]:md:tw-mb-12':
!disableMargin,
}"
>
<ng-content></ng-content>
</section>
`,
})
export class SectionComponent {
@Input({ transform: coerceBooleanProperty }) disableMargin = false;
}