UNPKG

@momentum-ui/react

Version:

Cisco Momentum UI framework for ReactJs applications

31 lines (28 loc) 623 B
import React from 'react'; import { Alert, AlertContainer } from '@momentum-ui/react'; export default class AlertKitchenSink extends React.Component { render() { const types = ['success', 'warning', 'error', 'info']; return ( <React.Fragment> <AlertContainer> { types.map(type => ( <Alert closable title='Alert' message={'Who\'s awesome? You are!'} show key={type} type={type} /> )) } </AlertContainer> </React.Fragment> ); } }