How to use the @times-components/link.propTypes 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 / src / article-body / article-link.web.js View on Github external
line-height: 30px;
  `
};

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

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

ArticleLink.propTypes = {
  ...Link.propTypes
};
export default ArticleLink;
github newsuk / times-components / packages / article-skeleton / src / article-body / article-link.web.js View on Github external
target={target}
    url={url}
    onPress={onPress}
  >
    {children}
  
);

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

ArticleLink.propTypes = {
  ...Link.propTypes,
  dropCap: PropTypes.bool
};
export default withTrackEvents(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