UNPKG

@eccenca/gui-elements

Version:

Collection of low-level GUI elements like Buttons, Icons or Alerts. Also includes core styles for those elements.

27 lines (21 loc) 568 B
import React from 'react'; import Alert from './Alert'; import PerformanceMixin from '../../mixins/PerformanceMixin'; const Info = React.createClass({ mixins: [PerformanceMixin], displayName: 'Info', // define property types propTypes: { children: React.PropTypes.node.isRequired, }, // template rendering render() { const {children, ...otherProps} = this.props; return ( <Alert type="info" {...otherProps}> {children} </Alert> ); }, }); export default Info;