UNPKG

reliance-react-checkbox-tree

Version:

Fork of checkbox tree in React by Jake Zatecky: https://github.com/jakezatecky/react-checkbox-tree.

31 lines (25 loc) 644 B
import PropTypes from 'prop-types'; import React from 'react'; class Button extends React.PureComponent { static propTypes = { children: PropTypes.node.isRequired, title: PropTypes.string, }; static defaultProps = { title: null, }; render() { const { children, title, ...props } = this.props; return ( <button aria-label={title} title={title} type="button" {...props} > {children} </button> ); } } export default Button;