@hakit/components
Version:
A series of components to work with @hakit/core
15 lines • 849 B
TypeScript
export interface AlertProps extends React.ComponentProps<"div"> {
/** the title of the alert @default "" */
title?: string;
/** the description of the alert @default "" */
description?: string;
/** the onClick event to fire on click of the alert */
onClick?: () => void;
/** The type of the alert message @default info */
type?: "info" | "warning" | "error" | "success";
/** optionally render children in the main content of the alert */
children?: React.ReactNode;
}
/** A simple Alert component to display messages or warnings if need be, this is currently used internally for error boundaries. */
export declare function Alert({ title, description, type, onClick, className, children, cssStyles, ...rest }: AlertProps): import("@emotion/react/jsx-runtime").JSX.Element;
//# sourceMappingURL=index.d.ts.map