liber-salti
Version:
Saltí - Liber Design System
33 lines (32 loc) • 760 B
TypeScript
/// <reference types="react" />
export interface ToastProps {
/**
* The time in milisseconds that will be waited
* to call the onClose function after opening.
*/
autoHideDuration?: number;
/**
* The message that shows on the component.
*/
message: React.ReactNode;
/**
* Callback required for the autoHide function.
*/
onClose?: () => void;
/**
* If defined, a dismiss IconButton will show on the right of the component.
*/
onDismiss?: () => void;
/**
* If `true`, the component will show.
*/
open: boolean;
/**
* Override `bottom` property.
*/
bottom?: number;
/**
* HTML `id`.
*/
id?: string;
}