Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@doodle/components / src / components / controls / Input / InputFeedback.js
Size: Mime:
import React, { Component } from 'react';
import PropTypes from 'prop-types';

class InputFeedback extends Component {
  static propTypes = {
    type: PropTypes.oneOf(['note', 'error']),
    children: PropTypes.any,
  };
  static defaultProps = {
    children: null,
    type: 'note',
  };

  render() {
    const { children, type } = this.props;
    return <div className={`InputFeedback InputFeedback--${type}`}>{children}</div>;
  }
}

export default InputFeedback;