on d760cbf help sign in
28 lines 573 B history raw
1import React from 'react';
2import PropTypes from 'prop-types';
4import ProtoAnchor from './ProtoAnchor';
6const Anchor = props => {
7 return (
8 <ProtoAnchor {...props} prop-disabled={`${props['prop-disabled']}`}>
9 {props.children}
10 </ProtoAnchor>
11 );
12};
14Anchor.propTypes = {
15 'prop-disabled': PropTypes.bool,
16 'prop-color': PropTypes.string,
17 'prop-size': PropTypes.string,
18 'prop-type': PropTypes.string,
19};
21Anchor.defaultProps = {
22 'prop-disabled': false,
23 'prop-color': 'black',
24 'prop-size': 'md',
25 'prop-type': 'link',
26};
28export default Anchor;