@kushki/ng-suka
Version:
<p align="center"> <h1 align="center">Suka Components Angular</h1> <p align="center"> An Angular implementation of the Suka Design System </p> </p>
48 lines (47 loc) • 1.29 kB
TypeScript
import { EventEmitter, OnInit } from '@angular/core';
import { IconType } from '../icon/icon-types';
/**
* Informa a los usuarios sobre cambios importantes o condiciones persistentes.
*
* Usa este componente si necesitas comunicar a los usuarios de una manera prominente. Los Banner son ubicados en la parte superior de una página o sección al que aplican, abajo del header de los mismos.
*/
export declare class Banner implements OnInit {
statusIcon: IconType;
hide: boolean;
animationState: 'default' | 'closing';
/**
* Title content for the banner
*/
title: any;
/**
* Sets the status for the banner
*/
status: 'default' | 'info' | 'success' | 'attention' | 'alert';
/**
* Displays a close button
*/
dismissable: boolean;
/**
* Action label content
*/
actionLabel: string;
/**
* Callback when the action
*/
action: EventEmitter<any>;
/**
* Callback when the banner is dismissed.
*/
dismiss: EventEmitter<any>;
ngOnInit(): void;
/**
* Emits the action callback.
*/
onAction(): void;
/**
* Closes the banner.
* Emits the dismiss callback.
*/
onClose(event?: any): void;
onFadeFinished(event: AnimationEvent): void;
}