@azure/communication-react
Version:
React library for building modern communication user experiences utilizing Azure Communication Services
19 lines • 675 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/// Adapted from: https://github.com/AlmeroSteyn/react-aria-live/blob/master/src/modules/MessageBlock.js
import React from 'react';
const offScreenStyle = {
border: 0,
clip: 'rect(0 0 0 0)',
height: '1px',
margin: '-1px',
overflow: 'hidden',
whiteSpace: 'nowrap',
padding: 0,
width: '1px',
position: 'absolute'
};
/** @private */
const MessageBlock = (props) => React.createElement("div", { style: offScreenStyle, role: "log", "aria-live": props.ariaLive }, props.message ? props.message : '');
export default MessageBlock;
//# sourceMappingURL=MessageBlock.js.map