pzl-react-reusable-components
Version:
34 lines (33 loc) • 761 B
TypeScript
/// <reference types="react" />
import { IMessageBarProps, MessageBarType } from '@fluentui/react';
/**
* @category UserMessage
*/
export interface IUserMessageProps extends IMessageBarProps {
/**
* Text to show in the message
*
* NOTE: Supports markdown
*/
text?: string;
/**
* On click handler for the message
*/
onClick?: (event: React.MouseEvent<any>) => void;
/**
* On dismiss handler for the message
*/
onDismiss?: () => void;
/**
* Type (info, warning, error etc)
*/
type?: MessageBarType;
/**
* Container style
*/
containerStyle?: React.CSSProperties;
/**
* To flex the message center, speficy a min height
*/
fixedCenter?: number;
}