@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) • 580 B
JSX
import React from 'react';
import Alert from './Alert';
import PerformanceMixin from '../../mixins/PerformanceMixin';
const Success = React.createClass({
mixins: [PerformanceMixin],
displayName: 'Success',
// define property types
propTypes: {
children: React.PropTypes.node.isRequired,
},
// template rendering
render() {
const {children, ...otherProps} = this.props;
return (
<Alert type="success" {...otherProps}>
{children}
</Alert>
);
},
});
export default Success;