ink-link

3.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    987
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    987
  • 2.0.1
    6,598
  • 2.0.0
    11,266
  • 1.1.0
    16,555
  • 1.0.0
    145
  • 0.2.0
    2
  • 0.1.0
    0

Package Sidebar

Install

npm i ink-link

Weekly Downloads

35,553

Version

3.0.0

License

MIT

Unpacked Size

6.45 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus