@guruhotel/aura-ui
Version:
⚛️ React UI library by GuruHotel
14 lines (13 loc) • 505 B
TypeScript
/// <reference types="react" />
import { DefaultProps, VariantProps } from "../theme";
import { StyledAlert } from "./alert.styles";
export declare type StyledAlertProps = DefaultProps & VariantProps<typeof StyledAlert> & {
icon?: JSX.Element;
closeIcon?: JSX.Element;
onClose?: () => void;
showCloseButton?: boolean;
};
export interface CloseButtonProps {
closeIcon?: JSX.Element;
}
export declare type NativeAttrs = Omit<React.ButtonHTMLAttributes<unknown>, keyof CloseButtonProps>;