@sap-ux/ui-components
Version:
SAP UI Components Library
34 lines • 1.23 kB
TypeScript
import React from 'react';
import type { IMessageBarProps, IMessageBarStyles } from '@fluentui/react';
import { MessageBarType } from '@fluentui/react';
import { UiIcons } from '../Icons';
export { MessageBarType as UIMessageBarType };
/**
* UIMessageBar component
* based on https://developer.microsoft.com/en-us/fluentui#/controls/web/MessageBar
*
* @exports
* @class UIMessageBar
* @extends {React.Component<IMessageBarProps, {}>}
*/
export declare class UIMessageBar extends React.Component<IMessageBarProps, {}> {
/**
* Initializes component properties.
*
* @param {IMessageBarProps} props
*/
constructor(props: IMessageBarProps);
protected setStyle: (props: IMessageBarProps) => IMessageBarStyles;
/**
* Returns the corresponding UI icon for the given message type.
*
* @param {MessageBarType} [type] - The type of the message (optional).
* @returns {UiIcons} The UI icon that corresponds to the given message type.
*/
protected getMessageTypeIcon(type?: MessageBarType): UiIcons.Error | UiIcons.Info | UiIcons.Success | UiIcons.Warning;
/**
* @returns {JSX.Element}
*/
render(): JSX.Element;
}
//# sourceMappingURL=UIMessageBar.d.ts.map