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