on 05c1914 help sign in
bridge/src/components/Anchor.js
33 lines 617 B history raw
1import React from 'react';
2import PropTypes from 'prop-types';
4import ProtoAnchor from './ProtoAnchor'
7const Anchor = props => {
9 return (
10 <ProtoAnchor
11 {...props}
12 prop-disabled={`${props['prop-disabled']}`}>
13 { props.children }
14 </ProtoAnchor>
15 )
18Anchor.propTypes = {
19 'prop-disabled': PropTypes.bool,
20 'prop-color': PropTypes.string,
21 'prop-size': PropTypes.string,
22 'prop-type': PropTypes.string,
23};
25Anchor.defaultProps = {
26 'prop-disabled': false,
27 'prop-color': 'black',
28 'prop-size': 'md',
29 'prop-type': 'link',
30};
33export default Anchor;