3.0.0 • Published 11 months ago

ink-link v3.0.0

Weekly downloads
64,062
License
MIT
Repository
github
Last release
11 months ago

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

3.0.0

11 months ago

2.0.1

1 year ago

2.0.0

4 years ago

1.1.0

4 years ago

1.0.0

5 years ago

0.2.0

6 years ago

0.1.0

6 years ago