semantic-ui-react#Portal TypeScript Examples
The following examples show how to use
semantic-ui-react#Portal.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ErrorPortal.tsx From FLECT_Amazon_Chime_Meeting with Apache License 2.0 | 6 votes |
render() {
const gs = this.props as GlobalState
return (
<Portal onClose={this.handleClose} open={true}>
<Segment
style={{
left: '40%',
position: 'fixed',
top: '50%',
zIndex: 1000,
}}
>
<Header>Error</Header>
<p>
{gs.errorMessage}
</p>
<Button
content='Close Portal'
negative
onClick={this.handleClose}
/>
</Segment>
</Portal>
)
}