chakra-ui
Version:
Responsive and accessible React UI components built with React and Emotion
29 lines (24 loc) • 556 B
TypeScript
import { IAlert, AlertProps } from "../Alert";
import { BoxProps } from "../Box";
import * as React from "react";
export interface IToast extends AlertProps {
/**
* The title of the toast.
*/
title?: string;
/**
* If `true` adds a close button to the toast.
*/
isClosable?: boolean;
/**
* Callback function to close the toast.
*/
onClose?: () => void;
/**
* The description of the toast
*/
description?: string;
}
export type ToastProps = IToast;
declare const Toast: React.FC<ToastProps>;
export default Toast;