motionsnack

Animated React sections that already feel finished.

Copy them into Next.js or add them with one command. Plain React and Tailwind, light and dark.

New sections, once a month

One short email when something new lands. No spam.

Library

  • Sections
  • Blocks
  • Components
  • Application UI
  • Templates

Popular

  • Hero
  • Gallery
  • Testimonials
  • Stats
  • Logos
  • FAQ

Resources

  • Installation
  • All components
  • All blocks
  • All sections
  • All application UI
  • Design system
  • Changelog
  • Pricing

Company

  • About
  • Contact
  • Terms
  • Privacy

Install

npx motionsnack add <name>Step-by-step guidehello@motionsnack.dev
Kuba Šťastný@kubastastnydev

© 2026 motionsnack. All rights reserved.

TermsPrivacy

motionsnack

motionsnack
DocsSectionsTemplatesWhat's newPricing
Get lifetime access
  1. Home
  2. Docs
  3. Components
  4. Input
  5. Copy Input
ComponentsBlocksSectionsApplication UI
ComponentsBlocksSectionsApplication UI

Accordion

  • Spring Accordion

Alert

  • Glow Alert

Audio

  • Podcast PlayerNew
  • Voice NoteNew
  • Voice RecorderNew

Avatar

  • Avatar Stack

Badge

  • Pulse Badge

Breadcrumb

  • Slide Breadcrumb

Button

  • Chip ButtonNew
  • Glow Border Button
  • Glow ButtonNew
  • Plain ButtonNew

Calendar

  • Month Calendar

Checkbox

  • Checkbox CardsNew
  • Checkbox GroupNew
  • Chip CheckboxNew

Cropper

  • Image Cropper

Dialog

  • Spring Dialog

Dropdown

  • Command MenuNew
  • Stagger Dropdown
  • Switcher DropdownNew

File Upload

  • Drop Zone Upload

Input

  • Addon InputNew
  • Button InputNew
  • Copy InputNew
  • Date InputNew
  • Floating Label Input
  • Joined InputsNew
  • Notched Label InputNew
  • Number StepperNew
  • OTP InputNew
  • Password InputNew
  • Phone InputNew
  • Range InputNew
  • Search InputNew
  • Tag InputNew
  • Text FieldNew

Loader

  • Curtain LoaderNew
  • Greeting LoaderNew
  • Line LoaderNew
  • Meter LoaderNew
  • Split LoaderNew

Navigation Menu

  • Mobile Tab BarNew

Notification

  • Notification BellNew
  • Toast Stack

Pagination

  • Sliding Pagination

Popover

  • Spring Popover

Radio

  • Card Radio Group
  • Payment MethodNew
  • Radio GroupNew
  • Rating RadioNew

Select

  • ComboboxNew
  • Glide Select
  • Multi SelectNew
  • Rich SelectNew
  • Select FieldNew
  • Tree SelectNew

Sidebar

  • Icon RailNew

Slider

  • Glow Slider

Stepper

  • Progress Stepper

Switch

  • Billing SwitchNew
  • Switch RowNew
  • Toggle SwitchNew

Table

  • Sortable Table

Tabs

  • Sliding Tabs

Textarea

  • Auto Grow Textarea

Toggle

  • Icon ToggleNew
  • Theme ToggleNew
  • Toggle GroupNew

Tooltip

  • Follow Tooltip

Input

Copy Input

New

A read-only field with a copy button whose icon turns into a drawn check while a small Copied tooltip pops up.

npx motionsnack add copy-input

Customize

ms
px
px
<CopyInput />

Props

14 properties

PropertyTypeDefaultDescription
onCopy(value: string) => void-Called with the text after it was copied.
copyErrorLabelstring"Couldn't copy. Press Ctrl+C to copy the selected text."Message when the clipboard refuses; the text is selected so the shortcut still works.
copiedAnnouncementstring'Copied to clipboard'Screen-reader announcement after a copy.
idstringgeneratedId of the input.
classNamestring''Extra classes on the wrapper.
labelstring'Invite link'Label above the field. Empty hides it.
valuestring'https://motionsnack.com/invite/8F2K-QX'Text shown in the field and copied by the button.
helperTextstring'Anyone with the link can join your workspace.'Small text under the field. Empty hides it.
buttonStyle'icon' | 'text''icon'Square icon button inside the right edge, or an attached text button.
copyLabelstring'Copy'Text of the button and its accessible name.
copiedLabelstring'Copied'Text of the tooltip and of the button once copied.
resetAfternumber1800How long the copied state stays.
heightnumber48Height of the field.
radiusnumber12Corner radius of the field.

About Copy Input

Copy Input shows a link, a code or a key that visitors need to copy, such as an invite link, a coupon or an API token. Clicking the field selects the whole text, and the copy button sits either as a small icon inside the right edge or as an attached text button. On click the text goes to the clipboard, with a fallback for older browsers; the copy icon spins away into a check mark that draws itself, a Copied tooltip pops above the button and everything settles back after a delay you set. The copied state is announced to screen readers, and every word is a prop.

What's included

  • Icon button or attached text button
  • Copy icon that turns into a drawn check
  • Copied tooltip that pops above the button
  • Clipboard API with a fallback
  • Click to select the whole text
  • Screen reader announcement
  • Light and dark look
Type
Animated React input component
Library
Components · Input
Stack
Next.js, React, Tailwind CSS
Added
2026-11-23
Install
npx motionsnack add copy-input