How to use the @times-components/link.TextLink.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-skeleton / src / article-body / article-link.js View on Github external
{props.children}
        
      );
    }}
  
);

ArticleLink.displayName = "ArticleLink";

ArticleLink.defaultProps = {
  ...TextLink.defaultProps,
  linkType: ""
};

ArticleLink.propTypes = {
  ...TextLink.propTypes,
  linkType: PropTypes.string
};
export default articleLinkTrackingEvents(ArticleLink);
github newsuk / times-components / packages / article / src / article-body / article-link.js View on Github external
style={styles.articleLink}
          url={props.url}
        >
          {props.children}
        
      );
    }}
  
);

ArticleLink.defaultProps = {
  ...TextLink.defaultProps
};

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

@times-components/link

component to handle links and navigation

BSD-3-Clause
Latest version published 6 months ago

Package Health Score

80 / 100
Full package analysis