Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nielse63/react-link-external

External URL link component for React
https://github.com/nielse63/react-link-external

Last synced: 28 days ago
JSON representation

External URL link component for React

Awesome Lists containing this project

README

        

# react-link-external

> External URL link component for React

## Features

- Standardized external `` tag with all atttributes (`target`, `rel`, etc.)
- Meets WCAG 2.0 Level A and WCAG 2.0 Level AA standards
- Fully tested

## Installation

```bash
npm install --save react-link-external
```

## Usage

```js
import LinkExternal from 'react-link-external';

export default MyComponent() {
return (
Link Text
);
};
```

## API

### `href`

- Required: `true`
- Type: `string`

The url to link to (maps to `` elements `href` attribute)

## Development

### Setup

```bash
git clone https://github.com/nielse63/react-link-external
cd react-link-external
nvm use
npm ci
```

### Testing

```bash
npm test
npm test -- --coverage
```