@abgov/react-components
Version:
Government of Alberta - UI components for React
44 lines (43 loc) • 1.4 kB
TypeScript
import { GoabBadgeType, Margins, GoabIconType } from '@abgov/ui-components-common';
import { JSX } from 'react';
interface WCProps extends Margins {
type: GoabBadgeType;
icon?: string;
content?: string;
arialabel?: string;
testid?: string;
icontype?: GoabIconType;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"goa-badge": WCProps & React.HTMLAttributes<HTMLElement>;
}
}
}
export interface GoabBadgeProps extends Margins {
type: GoabBadgeType;
icon?: boolean;
content?: string;
testId?: string;
ariaLabel?: string;
iconType?: GoabIconType;
}
export declare function GoabBadge({ type, content, icon, testId, mt, mr, mb, ml, ariaLabel, iconType, }: GoabBadgeProps): JSX.Element;
/**
* @deprecated
*/
export declare function GoabInfoBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
/**
* @deprecated
*/
export declare function GoabSuccessBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
/**
* @deprecated
*/
export declare function GoabImportantBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
/**
* @deprecated
*/
export declare function GoabEmergencyBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
export {};