• Renders a contextual feedback message Takes optional children which will be hidden by default. If the child is only a string, it will be wrapped in a <p> element.

    Parameters

    Returns null | ReactElement<any, any>

    Example

    <MessageBar type="error" title="An error has occurred" onClose={onCloseHandler} />
    

Generated using TypeDoc