mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 23:33:31 +00:00
23 lines
586 B
TypeScript
23 lines
586 B
TypeScript
import { coerceBooleanProperty } from "@angular/cdk/coercion";
|
|
import { CommonModule } from "@angular/common";
|
|
import { Component, Input } from "@angular/core";
|
|
|
|
@Component({
|
|
selector: "bit-section",
|
|
standalone: true,
|
|
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;
|
|
}
|