ns-ui

Copy Field Crimp

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.

Use when a copy-to-clipboard value field (API key, ID, hash) whose success feedback happens co-located in the string itself — a letter-spacing crimp wave from the clicked character plus an inline check that scales in and holds — with no toast or color flash elsewhere on screen; not for keyboard-shortcut reference (shortcuts-cheat-sheet) or code entry (otp-reel).

Install

npx shadcn add https://design.helpmarq.com/r/copy-field-crimp.json
  • copy
  • clipboard
  • api-key
  • field
  • micro-interaction
  • typography
  • confirmation

ns-ui / copy-field-crimp — click the value to copy

API key
Webhook secret

Props

PropTypeDefaultDescription
valuestringThe real value copied to the clipboard.
label?stringOptional caption above the field, e.g. "API key". Also seeds the default accessible name.
masked?booleanRender the value as bullets instead of its characters. The real value still copies.
ariaLabel?stringOverrides the copy button's accessible name entirely. Never derived from `value`.
onCopy?(value: string) => void
className?string