import * as React from 'react'; import { Alert, Button, Flex, Popup } from '@fluentui/react-northstar'; import { MoreIcon } from '@fluentui/react-icons-northstar'; class PopupExampleOnMultiple extends React.Component { state = { alert: false }; showAlert = () => { this.setState({ alert: true }); setTimeout(() => this.setState({ alert: false }), 2000); }; render() { return ( <> } content="Click + Focus" aria-label="Click or focus button" />} content="Hello from popup on click!" on={['click', 'focus']} /> } content="Hover + Focus" aria-label="Hover or focus button" />} content="Hello from popup on hover!" on={['hover', 'focus']} /> } content="Context + Focus" aria-label="Right click or focus button" onClick={this.showAlert} /> } content="Hello from popup on click!" on={['context', 'focus']} /> } content="Context + Hover" aria-label="Right click or hover button" onClick={this.showAlert} /> } content="Hello from popup on hover!" on={['context', 'hover']} /> } content="Context + Hover + Focus" aria-label="Right click or hover or focus button" onClick={this.showAlert} /> } content="Hello from popup on hover!" on={['context', 'hover', 'focus']} /> {this.state.alert && } ); } } export default PopupExampleOnMultiple;