How to use the @times-components/link.defaultProps function in @times-components/link

To help you get started, we’ve selected a few @times-components/link examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github newsuk / times-components / packages / article-skeleton / src / article-body / article-link.web.js View on Github external
import withTrackEvents from "./article-link-tracking-events";

const ArticleLink = ({ children, target, url, onPress, dropCap }) => (
  
    {children}
  
);

ArticleLink.defaultProps = {
  ...Link.defaultProps,
  onPress: () => {},
  dropCap: false
};

ArticleLink.propTypes = {
  ...Link.propTypes,
  dropCap: PropTypes.bool
};
export default withTrackEvents(ArticleLink);
github newsuk / times-components / packages / article / src / article-body / article-link.web.js View on Github external
margin-top: 0;
  `,
  medium: `
      font-size: ${fontSizes.body}px;
      line-height: 30px;
  `
};

const ArticleLink = ({ children, target, url }) => (
  
    {children}
  
);

ArticleLink.defaultProps = {
  ...Link.defaultProps
};

ArticleLink.propTypes = {
  ...Link.propTypes
};
export default ArticleLink;

@times-components/link

component to handle links and navigation

BSD-3-Clause
Latest version published 3 months ago

Package Health Score

84 / 100
Full package analysis