@vlinderclimate/net-zero-ui
Version:
<div align="center"> <img src="https://storage.yandexcloud.net/static.vlinderstorage.com/Telegram_VlinderTech.png" width=200 /> </div> <h1 align="center">Net Zero UI kit</h1>
25 lines (24 loc) • 875 B
TypeScript
/// <reference types="react" />
import { SnackbarProps as MuiSnackbarProps } from "@mui/material/Snackbar";
import { AlertProps } from "./Alert";
export interface SnackbarProps extends Omit<MuiSnackbarProps, "action" | "children"> {
/**
* Props for `Alert` element.
*/
alertProps?: Omit<AlertProps, "children">;
/**
* Element positioned at the end of the component.
* If `close`, default close `IconButton` will be populated.
* If `ReactNode`, it's a custom element.
*
* Either option, triggering the action element
* executes `handleClose` callback to close the component.
*/
action?: "close" | JSX.Element;
/**
* Children element inside of `Alert` element.
*/
children: AlertProps["children"];
}
declare const Snackbar: React.FC<SnackbarProps>;
export default Snackbar;