$ cnpm install ink-link
Link component for Ink
Creates clickable links in the terminal!
$ npm install ink-link
import React from 'react';
import {render, Color} from 'ink';
import Link from 'ink-link';
render(
<Link url="https://sindresorhus.com">
My <Color cyan>Website</Color>
</Link>
);
<Link>
For unsupported terminals, the link will be printed in parens after the text: My website (https://sindresorhus.com)
.
Type: string
The URL to link to.
Type: boolean
Default: true
Determines whether the URL should be printed in parens after the text for unsupported terminals: My website (https://sindresorhus.com)
.
Copyright 2013 - present © cnpmjs.org