ink-link
Link component for Ink
Last updated 2 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install ink-link 
SYNC missed versions from official npm registry.

ink-link

Link component for Ink

Creates clickable links in the terminal!

Install

npm install ink-link

Usage

import React from 'react';
import {render, Text} from 'ink';
import Link from 'ink-link';

render(
	<Link url="https://sindresorhus.com">
		My <Text color="cyan">Website</Text>
	</Link>
);

API

<Link>

Supported terminals.

For unsupported terminals, the link will be printed in parens after the text: My website (https://sindresorhus.com).

url

Type: string

The URL to link to.

fallback

Type: boolean
Default: true

Determines whether the URL should be printed in parens after the text for unsupported terminals: My website (https://sindresorhus.com).

Related

Current Tags

  • 5.0.0                                ...           latest (a year ago)

10 Versions

  • 5.0.0                                ...           a year ago
  • 4.1.0                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 3.0.0                                ...           3 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           6 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.0                                ...           8 years ago
  • 0.2.0                                ...           9 years ago
  • 0.1.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 33
Today 0
This Week 2
This Month 22
Last Day 0
Last Week 5
Last Month 7
Dependencies (2)
Dev Dependencies (12)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE