百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

ink-link

> 前端框架
开源

用于墨水的链接组件

191 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

用于墨水的链接组件

ink-link

Link component for Ink

Creates clickable links in the terminal!

Install

bash
npm install ink-link

Usage

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

render(
	
		My Website
	
);

API

``

Supported terminals.

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

url

Type: string

The URL to link to.

fallback

Type: boolean | (text: string, url: string) => string
Default: true

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

Can also be a function that receives the text and URL and returns a custom fallback string.

javascript
 `[${text}](${url})`}>
	My Website

Related

  • terminal-link - Create clickable links in the terminal
  • ink-gradient - Gradient color component for Ink
  • ink-big-text - Awesome text component for Ink

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptcliinkink-componentjsx

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架