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