UNPKG

@surveycake/rc

Version:

react component of surveycake

25 lines (24 loc) 844 B
import { ReactElement } from 'react'; import { SnackbarProps as MuiSnackbarProps } from '@material-ui/core/Snackbar'; import { IconProps } from '../Icon'; export interface SnackbarProps extends MuiSnackbarProps { semantic?: 'warning' | 'info' | 'success' | 'error'; transitionDirection: 'left' | 'right' | 'up' | 'down'; title: string; MessageIcon: ReactElement<IconProps>; showSemanticIcon: boolean; } export interface SnackbarContentProps extends Pick<SnackbarProps, 'message' | 'action' | 'title' | 'semantic' | 'MessageIcon' | 'showSemanticIcon'> { } export declare enum Semantic { 'WARNING' = "warning", 'INFO' = "info", 'SUCCESS' = "success", 'ERROR' = "error" } export declare enum Direction { 'UP' = "up", 'DOWN' = "down", 'LEFT' = "left", 'RIGHT' = "right" }