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-field-crimp
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 Field Crimp

ns-ui/copy-field-crimp
RemovedComponent

A copyable value field whose confirmation is typographic — letter-spacing crimps shut in a wave from the clicked character, then a check scales into the icon slot and holds. No toast, no green flash.

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-field-crimp.json

Source

registry/core/copy-field-crimp/component.tsxdesign.helpmarq.com/r/copy-field-crimp.json · first 6 KB
1"use client";
2
3import { useCallback, useEffect, useId, useRef, useState, type CSSProperties } from "react";
4
5// ---------------------------------------------------------------------------
6// CrimpCopy — a copy-to-clipboard field where the confirmation happens inside
7// the type itself, not in a toast bolted onto the corner of the screen.
8//
9// MECHANISM: the value renders as one span per character, each carrying a
10// `--cc-delay` custom property. Activating copy computes an origin character
11// index — the one nearest the pointer for a click, or index 0 for a keyboard
12// activation (native <button> click events fire with `detail === 0` when
13// triggered by Enter/Space, which is how the two are told apart without a
14// separate keydown handler) — and every character's delay becomes its
15// distance from that origin times ~18ms. A CSS keyframe animation
16// (`letter-spacing: 0 -> -0.06em -> 0`, with a hair of positive overshoot on
17// the way back out) then plays per character at its own delay, so the string
18// visibly crimps shut in a wave from the touched point and springs back
19// open — a wire getting a ferrule, not a flash of color. Characters remount
20// (keyed by an incrementing run id) on every activation so the animation
21// always plays from its start, repeat clicks included.
22//
23// Once the wave finishes sweeping outward, a small inline check (stroked in
24// --foreground) scales into the icon slot with an ease-out-expo curve, holds
25// for 1.2s, and fades back out to the idle copy glyph (--muted) — no toast,
26// no green flash, no layout shift, because the icon slot is reserved space
27// that never changes size.
28//
29// A11Y: the field is a real <button> whose accessible name is an explicit
30// `aria-label` (default derived from `label`, never from `value`) — the
31// character spans and both icons are aria-hidden, so a masked or unmasked
32// value never leaks into the accessible name either way. A visually-hidden
33// `aria-live="polite"` region announces "Copied" (cleared and reset each
34// activation so repeat copies re-announce). `prefers-reduced-motion` drops
35// the letter-spacing wave and icon transitions to near-instant but keeps the
36// check appearing and holding — the confirmation still reads, it just isn't
37// animated.
38// ---------------------------------------------------------------------------
39
40const DELAY_PER_CHAR_MS = 18;
41const CRIMP_DURATION_MS = 420;
42const HOLD_MS = 1200;
43const MASK_CHAR = "•";
44
45export interface CrimpCopyProps {
46// … truncated

Files it writes

  • registry/core/copy-field-crimp/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