@spaced-out/ui-design-system
Version:
Sense UI components library
31 lines • 1.02 kB
TypeScript
import * as React from 'react';
import type { Flow } from 'flow-to-typescript-codemod';
import type { AlertSemanticType } from '../../types/common';
import type { IconType } from '../Icon';
type ClassNames = Readonly<{
wrapper?: string;
alertText?: string;
actionContainer?: string;
icon?: string;
}>;
type InContextAlertBaseProps = {
classNames?: ClassNames;
} & ({
dismissable: true;
onCloseClick?: ((arg1: React.SyntheticEvent<HTMLElement>) => unknown) | null | undefined;
selfDismiss?: boolean;
} | {
dismissable?: false;
}) & {
children?: string;
actionText?: string;
onAction?: ((arg1: React.SyntheticEvent<HTMLElement>) => unknown) | null | undefined;
};
export type InContextAlertProps = InContextAlertBaseProps & {
semantic?: AlertSemanticType;
leftIconName?: string;
leftIconType?: IconType;
};
export declare const InContextAlert: Flow.AbstractComponent<InContextAlertProps, HTMLDivElement>;
export {};
//# sourceMappingURL=InContextAlert.d.ts.map