GitShow/sindresorhus/ink-link
sindresorhus

ink-link

Link component for Ink

by sindresorhus
cliinkink-componentjsxnodejsnpm-packagereact
Star on GitHubForknpm

TypeScript

191 stars11 forks7 contributorsQuiet · 9mo agoSince 2018v5.0.0MIT

Meet the team

See all 7 on GitHub →
sindresorhus
sindresorhus26 contributions
colinking
colinking2 contributions
gquittet
gquittet1 contribution
teplostanski
teplostanski1 contribution
Richienb
Richienb1 contribution
euZebe
euZebe1 contribution

Languages

View on GitHub →
TypeScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 discussion · Last activity 9mo ago
See all on GitHub →
gtbuchanan
Declare `react` as a peer dependencyOpenIssue

Summary 's compiled output imports the package ( → ) but isn't declared in or . declares as a peer dependency, so should too. It usually works by accident because the package manager hoists somewhere the resolver can reach. Under a strict, non-hoisted layout — where a package only sees its declared dependencies — it throws on load. Minimal repro Result: (Node reports the missing package as because is a subpath of the package.) With default hoisting the same install runs fine, because is reachable via . It also surfaces with no extra config under pnpm's global install layout (), which is isolated and has no hoisted fallback — that's how I originally hit it. Affected versions (current) and . Suggested fix Add to , mirroring and matching the React version requires: Environment ink-link: 5.0.0 (also 4.1.0) pnpm: 11.0.8 Node.js: 24.15.0

gtbuchanan · 1mo ago

Recent fixes

View closed PRs →
ndom91
Hyperlinks not detected as supported in Ghostty + tmuxClosedIssue

When using ink-link, the link component seemingly doesnt detect my terminal as supporting the new OSC 8 style terminal hyperlinks and renders the fallback. However, when using the dummy test print cmd, it does seem to support the new hyperlinks. The cursor isnt captured in the screenshot, but here im hovering the link: Am I missing something? Im using: Tmux 3.5a with Ghostty 1.1.3

ndom91 · 9mo ago
Mahmoudgalalz
Links has margin by defaultClosedIssue

I use Link inside a box which render with a bad box I added AlignItems to center and this how it looks there's no additional styling !Screenshot 2023-10-20 at 8 33 21 PM

Mahmoudgalalz · 9mo ago
tobysmith568
Specify fallback textClosedIssue

Hey, Would you be open to this package allowing consumers to provide a fallback function for when the terminal doesn't support links? I see that terminal-link already supports this, so I'm hoping it's as simple as forwarding on the props? Thanks!

tobysmith568 · 9mo ago
Structured data for AI agents

Repository: sindresorhus/ink-link. Description: Link component for Ink Stars: 191, Forks: 11. Primary language: TypeScript. Languages: TypeScript (100%). License: MIT. Topics: cli, ink, ink-component, jsx, nodejs, npm-package, react. Latest release: v5.0.0 (9mo ago). Open PRs: 0, open issues: 1. Last activity: 9mo ago. Community health: 71%. Top contributors: sindresorhus, colinking, gquittet, teplostanski, Richienb, euZebe.

·@ofershap

Replace github.com with gitshow.dev