@abgov/react-components
Version:
Government of Alberta - UI components for React
26 lines (25 loc) • 881 B
TypeScript
import { GoabAriaLiveType, GoabNotificationType } from '@abgov/ui-components-common';
interface WCProps {
ref: React.RefObject<HTMLElement | null>;
type: GoabNotificationType;
maxcontentwidth?: string;
arialive?: GoabAriaLiveType;
testid?: string;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"goa-notification": WCProps & React.HTMLAttributes<HTMLButtonElement>;
}
}
}
export interface GoabNotificationProps {
type?: GoabNotificationType;
ariaLive?: GoabAriaLiveType;
maxContentWidth?: string;
children?: React.ReactNode;
onDismiss?: () => void;
testId?: string;
}
export declare const GoabNotification: ({ type, ariaLive, maxContentWidth, children, testId, onDismiss, }: GoabNotificationProps) => import("react/jsx-runtime").JSX.Element;
export default GoabNotification;