@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
15 lines (14 loc) • 542 B
TypeScript
import React from 'react';
/**
* Custom Snackbar for notistack messages
* Use this component:
* - pass this component as property 'content' in the 'options' of enqueueSnackbar
*
* This component add a CloseIcon button on the top-right corner
* and attach a close handler that close the snackMessage identified as props.id
*/
declare const CustomSnackMessage: React.ForwardRefExoticComponent<{
id: string | number;
message: string | React.ReactNode;
} & React.RefAttributes<HTMLDivElement>>;
export default CustomSnackMessage;