on d760cbf help sign in
bridge/src/components/old/ProtoAnchor.js
27 lines 560 B history raw
1import React from 'react';
2import PropTypes from 'prop-types';
4const ProtoAnchor = props => {
5 return <a {...props}>{props.children}</a>;
6};
8ProtoAnchor.propTypes = {
9 className: PropTypes.string,
10 children: PropTypes.node,
11 autoFocus: PropTypes.bool,
12 style: PropTypes.object,
13 href: PropTypes.string,
14 rel: PropTypes.string,
15 target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
16};
18ProtoAnchor.defaultProps = {
19 className: '',
20 autoFocus: false,
21 style: {},
22 href: '',
23 rel: '',
24 target: '_self',
25};
27export default ProtoAnchor;