UNPKG

@momentum-ui/react-collaboration

Version:

Cisco Momentum UI Framework for React Collaboration Applications

35 lines (34 loc) 903 B
import React from 'react'; import { AlertBanner, Button } from '@momentum-ui/react-collaboration'; export default class AlertBannerError extends React.PureComponent { state = { showAlert1: true, }; render() { return ( <div> <div> <AlertBanner show={this.state.showAlert1} closable onHide={() => this.setState({ showAlert1: false })} type="error" > Error Alert Banner </AlertBanner> </div> <div> <div className="row"> <br /> <Button children="Toggle Error Alert Banner" onClick={() => this.setState({ showAlert1: !this.state.showAlert1 })} ariaLabel="Error Alert Banner" className="btn--primary btn--large" /> </div> </div> </div> ); } }