BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ns-ui/copy-button-travel
This component no longer exists. It was in ns-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-07 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

Copy Button Travel

ns-ui/copy-button-travel
RemovedComponent

Copy-to-clipboard button whose confirmation shows what got copied: a duplicate of the source text visibly peels off the line and travels the real distance to the clipboard glyph before fading, arriving as the glyph gives a small catch-bounce and the label ticks to "Copied".

Live preview

live · rendered by the registry
Rendered by ns-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://design.helpmarq.com/r/copy-button-travel.json

Source

registry/core/copy-button-travel/component.tsxdesign.helpmarq.com/r/copy-button-travel.json · first 6 KB
1"use client";
2
3import { useCallback, useEffect, useRef, useState } from "react";
4
5// ---------------------------------------------------------------------------
6// CarbonLift — a copy-to-clipboard button that shows WHAT it copied, not just
7// that something happened. On click, a duplicate of the source text peels up
8// off the source line and travels most of the real distance to the button's
9// clipboard glyph over 720ms — the actual measured gap between source and
10// icon, not a token nudge — fading and tightening its letter-spacing as it
11// goes, arriving right as the glyph gives one small settle bounce, as if it
12// just "caught" the duplicate. The label ticks Copy -> Copied in Geist Mono
13// at the same moment. This is a duplicate rising UP and traveling with the
14// real content as the moving element — distinct from a stamp pressing an
15// impression DOWN.
16//
17// MECHANISM: on click, the visible source node and the button's icon are
18// measured with getBoundingClientRect(); a clone span is absolutely
19// positioned at the source's exact box (same font, --foreground) inside a
20// shared relative container, then animated via a CSS custom property
21// translate + opacity + letter-spacing over 720ms ease-out-expo: it holds
22// near-full opacity through the first half of the flight so the two-line
23// duplication actually registers, then fades over the second half as it
24// nears the glyph. If the source is scrolled off-screen the measurement is
25// skipped and the component falls back to a plain label swap — the same
26// thing reduced motion always does.
27//
28// A11Y: a real <button> with an aria-label naming exactly what it copies.
29// Success is announced through a visually-hidden aria-live=polite region
30// ("Copied to clipboard"); the flying duplicate is aria-hidden and purely
31// decorative — nothing here is conveyed only by animation. Enter/Space
32// behave identically to a click (native button semantics, no custom key
33// handling needed). The label + icon revert to the resting state after 2s.
34//
35// Tokens only: --foreground for ink and the ghost, --muted for secondary
36// text, --border for the frame, --accent for the keyboard focus ring only.
37// Pure DOM/SVG/CSS — no canvas.
38// ---------------------------------------------------------------------------
39
40const GHOST_MS = 720;
41const BOUNCE_MS = 260;
42// The glyph's settle bounce should land as the duplicate arrives, not
43// partway through its flight — so its delay is derived from the flight
44// … truncated

Files it writes

  • registry/core/copy-button-travel/component.tsx

Facts

Registry
ns-ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-02
Last confirmed
12 days ago

Go to the source

Docs on ns-ui design.helpmarq.com nikolas-sapa/ns-ui on GitHub Raw registry item This item as JSON

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex