Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nielse63/react-link-external
- Owner: nielse63
- License: mit
- Created: 2022-01-17T15:34:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-13T12:41:16.000Z (over 1 year ago)
- Last Synced: 2024-10-09T16:50:05.220Z (30 days ago)
- Language: JavaScript
- Size: 3.47 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```