govbr-ds-angular
Version:
Implementação em Angular do Design System GovBR.
18 lines (17 loc) • 476 B
TypeScript
export declare const ICONS_BY_STATE: {
success: string;
danger: string;
warning: string;
info: string;
"": string;
};
export type StateType = keyof typeof ICONS_BY_STATE;
/**
* Função que retorna o ícone de acordo com o estado passado.
* @param state
* @returns Ícone correspondente ao estado.
* @example
* getIconByStateUtils('success');
* // Retorna 'fa-check-circle'
*/
export declare const getIconByStateUtils: (state: StateType) => string;