PaceUI

  • Components
  • Blocks
  • Templates
  • Studio
  • Resources
Intro
  • Components
  • Installation
  • MCP
Agents
  • Chat Composer
  • Workflow Board
  • Thinking States
  • Audio Visualizer
  • Task Pipeline
  • Approval Card
  • Model Ability Selector
  • Model Selector
  • Response Writer
  • AI Suggestions
  • Token Counter
Crafts
  • All Crafts
  • Avatar Flight
  • Voice Record
  • Starfield Card
  • Destination Queue
  • Rolling Bento
  • Download Button
  • Cart Stepper
  • Heart Burst
  • Copy Bar
  • Generative Grid
  • Destination Card
  • Magnetic Button
  • Morphing Copy
  • Expanding Search
  • Metric Tracker
  • Tilt Card
  • Animated Stack
Charts
  • API Traffic
  • Weekly Traffic
  • Financial Performance
  • Channel Sales
  • Customer Growth
  • Customer Segments
  • Sales Overview
  • Traffic Distribution
  • Daily Orders
  • Acquisition Funnel
  • Weekly Attendance
  • Market Trends
  • Portfolio Overview
  • Instance Health
  • Resource Usage
  • SaaS Subscriptions
  • Database Performance
  • Model Usage
  • Spend Allocation
Motion
  • Accordion
  • Alert
  • Calendar
  • Checkbox
  • Collapsible
  • Combobox
  • Context Menu
  • Dropdown Menu
  • Empty
  • Hover Card
  • Input OTP
  • Menubar
  • Navigation Menu
  • Pagination
  • Progress
  • Radio Group
  • Scroll Area
  • Select
  • Sidebar
  • Slider
  • Switch
  • Tabs
  • Tooltip
  • Reveal Text
  • Scramble Text
  • Squash Text
  • Bouncing Text
  • Mouse Wave Text
  • Text Fall Button
  • Spring Button
  • Infinite Scroller
  • Fillable Button
  • Layered Stack
  • Gradient Shadow
  • Profile Peek
  • Flip Reveal
  • Reveal on Scroll
  • Swap
  1. Components
  2. Crafts
PreviousNext

Copy Bar

A command-line copy bar with perimeter SVG progress countdown and morphing check confirmation.

When to use

  • Displaying CLI terminal install commands, package manager snippets, and API tokens.
  • Providing visual timing feedback so users know exactly how long the copied state remains active.
  • Compact single-line code blocks requiring accessible clipboard copy functionality.

When not to use

  • Multi-line syntax-highlighted code editors.
  • Plain text inputs where users are expected to edit the content.

API Reference

CopyBarProps

PropTypeDefaultDescription
textstring—The text snippet or command to display and copy to clipboard.
durationMsnumber3000Duration in milliseconds that the copied confirmation state remains active.
onCopy(text: string) => void—Optional callback invoked when the user copies the text.
showBorderProgressbooleantrueWhether to display the animated SVG perimeter progress countdown stroke.
classNamestring—Additional CSS class names.

Motion

  • Micro-spring bounce (stiffness 500, damping 22) on tap/click interaction.
  • Linear SVG strokeDashoffset countdown mapping exactly to durationMs.
  • Morphing icon animation between Clipboard and Check icons via MorphIcon.
Heart BurstGenerative Grid

PaceUI

Animated blocks, components, and templates for Next.js and TanStack Start. Built with Motion and shadcn - clean code you own.

GitHubTwitterDiscord

Products

BlocksComponentsTemplatesCraftsTanStack ChartsMCP ServerStarter KitsStyleX Components

Resources

DocumentationMotion ComponentsGSAP AnimationsNative AIBlogChangelog

Pricing & Account

PricingManage AccountLicensesAPI KeysAffiliate Program

Company

Contact UsDiscord CommunityPrivacy PolicyTerms of Service

© 2026 PaceUI. All rights reserved. Built by indie developer, Denish

PACEUI

npx paceui@latest add copy-button