Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

41 lines
901 B

/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
@Component({
selector: 'sqx-form-alert',
styles: [`
:host {
display: block;
min-width: 100%;
max-width: 100%;
}
.light {
background: #fcfeff;
}
`],
template: `
<div class="alert alert-hint mt-{{marginTop}} mb-{{marginBottom}} {{class}}" [class.light]="light">
<i class="icon-info-outline"></i> <ng-content></ng-content>
</div>`,
changeDetection: ChangeDetectionStrategy.OnPush
})
export class FormAlertComponent {
@Input()
public class: string;
@Input()
public marginTop = 2;
@Input()
public marginBottom = 4;
@Input()
public light = false;
}