• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

react-ui-org / react-ui / 14189255065

01 Apr 2025 06:59AM UTC coverage: 90.47%. First build
14189255065

Pull #613

github

web-flow
Merge 4789b79f4 into a7d1e91b6
Pull Request #613: Add `writing-tests-guidelines.md` (#612)

770 of 859 branches covered (89.64%)

Branch coverage included in aggregate %.

711 of 778 relevant lines covered (91.39%)

64.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/components/TextLink/TextLink.jsx
1
import PropTypes from 'prop-types';
2
import React from 'react';
3
import { withGlobalProps } from '../../providers/globalProps';
4
import { transferProps } from '../../helpers/transferProps';
5
import styles from './TextLink.module.scss';
6

7
export const TextLink = ({
2✔
8
  href,
9
  label,
10
  ...restProps
11
}) => (
12
  <a
×
13
    {...transferProps(restProps)}
14
    className={styles.root}
15
    href={href}
16
  >
17
    {label}
18
  </a>
19
);
20

21
TextLink.propTypes = {
2✔
22
  /**
23
   * Link's `href` attribute.
24
   */
25
  href: PropTypes.string.isRequired,
26
  /**
27
   * Link label.
28
   */
29
  label: PropTypes.string.isRequired,
30
};
31

32
export const LinkWithGlobalProps = withGlobalProps(TextLink, 'TextLink');
2✔
33

34
export default LinkWithGlobalProps;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc