Input Copy

One-line copyable value. Click to copy, icon swaps to a bouncy check on success, and the value highlights as you hover — pair with a short label for API keys, IDs and install snippets.

Usage

API key sk_live_bN3pQ7m2wZ91yT4rX6vL8oK5hA0dE

With label

Install pnpm add @bloom-nx/ui
User ID usr_01HX9K7BZPT6QJ2M3N4R5V6W7X

Sizes

npm i @bloom-nx/ui
npm i @bloom-nx/ui

Tones

ID usr_01HX9K7BZ
ID usr_01HX9K7BZ

API reference

One-line copyable value with an icon-button trigger. Writes to navigator.clipboard; the check icon scales in on a bouncy spring (instant under reduced-motion).

PropTypeDescription
stringThe text written to the clipboard when the button is pressed.
string?Optional prefix label rendered in sans-serif before the value.
'sm' | 'default'Track height and typography scale.
'default' | 'muted''muted' uses the muted surface with no border — blends into cards.
numberMilliseconds the success state stays visible before reverting.
(value: string) => voidFires after a successful clipboard write.