# Beste UI

> Beautiful, accessible blocks, pieces and components for shadcn/ui and Tailwind CSS, built for React and Next.js. Install one with the shadcn CLI and the code is yours to edit: no runtime dependency, nothing to upgrade.

Markdown rendition of https://ui.beste.co/component/button17. Every page on the site has one: add `.md` to any address, or send `Accept: text/markdown`.

Whole catalog for LLMs: https://ui.beste.co/llms.txt. Registry index: https://ui.beste.co/r/registry.json

---
1. /
2. [Components](/components)
3. /
4. [Button](/components/button)
5. /
6. Copy to Clipboard Button

# Copy to Clipboard Button

A click to copy button for install commands, API keys, and coupon codes with copied feedback.

PreviewCode

$npx shadcn@latest init

## Installation

Adds the component and everything it depends on to your project.

![](https://oud.pics/sm/l/npm.svg)npm![](https://oud.pics/sm/l/bun.svg)bun![](https://oud.pics/sm/l/pnpm.svg)pnpm![](https://oud.pics/sm/l/yarn.svg)yarn

Base UI

`npx shadcn add https://ui.beste.co/component/r-base/button17`

New here? Read the [installation guide](/docs/installation).

## Usage

The import and the props worth knowing about, in one place.

```
import { Button17 } from "@/components/beste/component/button17";

// Copies `value` on click; icon flips to a check while copied.
<Button17 value="npx shadcn@latest init" prefix="$" />

<Button17
  value="SAVE20"
  label="Use code SAVE20"   // display text (defaults to value)
  tone="dark"               // "neutral" (default) | "dark"
  resetDelay={3000}         // ms the copied state is shown
  onCopy={() => console.log("coupon copied")}
/>
```

## Playground

Turn the props on the right; the snippet under them is what you would write to get what you see.

$npx shadcn@latest init

Usage

```
import { Button17 } from "@/components/beste/component/button17";

<Button17
  value="npx shadcn@latest init"
  prefix="$"
/>
```

Props

ValuePrefixLabel

Reset delay

ms

Surface

Toneneutral

## Keyboard and gestures

Every one of these is in the component already. They are listed because a props table cannot mention a gesture, so nothing else on this page can tell you they exist.

| Click | Copies the value and says so; the label goes back after \`resetDelay\`. |
| ----- | ----------------------------------------------------------------------- |

## Props

Read from the component's own type, so this cannot drift from what it accepts.

| Prop       | Type                | Default | Description                                                                      |
| ---------- | ------------------- | ------- | -------------------------------------------------------------------------------- |
| value\*    | string              | —       | The text written to the clipboard                                                |
| label      | string              | —       | Display text (defaults to value)                                                 |
| prefix     | string              | —       | Muted, non-copied prefix rendered before the label (e.g. "$" for shell commands) |
| resetDelay | number              | —       | How long the copied state is shown, in ms                                        |
| tone       | "neutral" \| "dark" | —       | Surface tone: bordered background (default) or solid dark                        |
| onCopy     | () => void          | —       | Called after a successful copy                                                   |
| className  | string              | —       | Additional classes merged onto the button                                        |

[PreviousShine Sweep Button](/component/button16)[NextCorner Brackets Button](/component/button18)

On this page
* [Preview](#preview)
* [Installation](#installation)
* [Usage](#usage)
* [Playground](#playground)
* [Keyboard](#keyboard)
* [Props](#props)

## More Button components

[View all Button](/components/button)

[](/component/button11)

Press me

### Pressable Button

A neobrutalist button with a hard offset shadow that lifts on hover and presses in on click.

[](/component/button6)

![](https://i.pravatar.cc/64?img=14)![](https://i.pravatar.cc/64?img=33)![](https://i.pravatar.cc/64?img=48)Join 2,400+ members

### Avatar Stack Button

A social proof button with an avatar stack inside the pill and a trailing arrow.

[](/component/button12)

Book an intro callBook an intro call

### Editorial CTA Button

An editorial pill button with a rolling label and animated icon seal on hover.

[](/component/button16)

Upgrade to Pro

### Shine Sweep Button

A premium pill button with a diagonal shine sweep on hover for pricing and upgrade actions.

[](/component/button18)

View manifest

### Corner Brackets Button

A monospace button framed by corner brackets that spring outward on hover.

[](/component/button19)

Decrypt accessDecrypt access

### Scramble Button

A scramble text button that cycles random glyphs on hover for developer and tech landings.

## Ship the interface, keep the code.

New blocks, pieces and components every week. Install one with a command and it is yours to edit. No runtime dependency, no upgrade path to fight.

[Browse the libraryBrowse the library](/blocks)[See pricingSee pricing](/pricing)

### Library

* [Blocks](/blocks)
* [Pages](/pages)
* [Pieces](/pieces)
* [Components](/components)
* [Search](/search)

### Learn

* [Docs](/docs)
* [AI & MCP](/docs/mcp)
* [Blog](/blog)
* [Free tools](/tools)
* [What's new?](/changelog)
* [Website Builder](https://beste.co)

### More

* [Pricing](/pricing)
* [Referrals](/referrals)
* [License](/license)
* [GitHub](https://github.com/beste-co/beste-ui)

### Shadcn Blocks

* [Shadcn Hero Blocks](/blocks/hero)
* [Shadcn Feature Blocks](/blocks/feature)
* [Shadcn Pricing Blocks](/blocks/pricing)
* [Shadcn CTA Blocks](/blocks/cta)
* [Shadcn FAQ Blocks](/blocks/faq)
* [Shadcn About Blocks](/blocks/about)
* [Shadcn Stats Blocks](/blocks/stats)
* [Shadcn Footer Blocks](/blocks/footer)
* [Shadcn Navigation Blocks](/blocks/navigation)
* [Shadcn Auth Blocks](/blocks/auth)
* [Shadcn Ecommerce Blocks](/blocks/ecommerce)
* [Shadcn Portfolio Blocks](/blocks/portfolio)
* [Shadcn Showcase Blocks](/blocks/showcase)
* [Shadcn Careers Blocks](/blocks/careers)
* [Shadcn Onboarding Blocks](/blocks/onboarding)
* [Shadcn Coming Soon Blocks](/blocks/coming-soon)
* [Shadcn Post Blocks](/blocks/post)
* [Shadcn Legal Blocks](/blocks/legal)
* [Shadcn Workflow Blocks](/blocks/workflow)
* [Shadcn News Blocks](/blocks/news)

© 2026, [Beste](https://beste.co). All rights reserved.