@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
42 lines (33 loc) • 1.26 kB
TypeScript
import { BoxProps } from '@mui/material';
export interface ToastNotificationsProps extends BoxProps {
/**
* Handle notification
*/
handleNotification?: (type: any, data: any, content: any) => JSX.Element;
/**
* Disable Toast Notification
*/
disableToastNotification?: boolean;
/**
* Other props
*/
[p: string]: any;
}
/**
* > API documentation for the Community-JS Toast Notifications component. Learn about the available props and the CSS API.
#### Import
```jsx
import {ToastNotifications} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCToastNotifications` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCUserNotifications-root|Styles applied to the root element.|
|toastMessage|.SCUserToastNotifications-toast-message|Styles applied to the toast message element.|
|toastContent|.SCUserToastNotifications-toast-content|Styles applied to the toast content element.|
|toastActions|.SCUserToastNotifications-toast-actions|Styles applied to the toast actions section.|
* @param inProps
*/
export default function UserToastNotifications(inProps: ToastNotificationsProps): JSX.Element;