UNPKG

@momentum-ui/react

Version:

Cisco Momentum UI framework for ReactJs applications

51 lines (46 loc) 1.11 kB
/** @component alert-meeting */ import React from 'react'; import { Button, AlertMeeting, AlertContainer } from '@momentum-ui/react'; export default class Default extends React.PureComponent { state = { show: false } handleOnHide = () => { this.setState({show: false}); } handleOnSnooze = () => { this.setState({show: false}); } render() { return ( <section> <div> <div className='row'> <Button ariaLabel='Click to Open' onClick={() => this.setState({show: true})} children='Single Attendee' color='primary' /> </div> <br /> <AlertContainer> <AlertMeeting title='Important Meeting' status='In 5 mins.' message='This is important' onHide={this.handleOnHide} onSnooze={this.handleOnSnooze} attendees={[{title: 'J $'}]} show={this.state.show} /> </AlertContainer> </div> </section> ); } }