Link component for Ink
Switch branches/tags
Nothing to show
Clone or download
Latest commit 006324d May 16, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes Meta tweaks May 16, 2018
.gitignore
.npmrc
.travis.yml
index.js Simplify the code Apr 4, 2018
license
package.json
readme.md Readme tweaks Apr 7, 2018
screenshot.png Init Mar 25, 2018
test.js
test.js.md
test.js.snap Simplify the code Apr 4, 2018

readme.md

ink-link Build Status

Link component for Ink

Creates clickable links in the terminal!

Install

$ npm install ink-link

Usage

import {h, render, Color} from 'ink';
import Link from 'ink-link';

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

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

URL to link to.

Related

License

MIT © Sindre Sorhus