structyl

Copy Button

stable

Copies text to the clipboard with success feedback.

Basic usage

npx structyl init

Examples

In a code block

Pair CopyButton with a styled code block — the typical documentation pattern.

pnpm add @structyl/styled

Copy command and tokens

CopyButton can be used beside code, API keys and generated theme values.

pnpm add @structyl/styled

Features

  • Animated check feedback.
  • Configurable reset delay.

Installation

bash
pnpm dlx structyl add copy-button

API Reference

Copy Button API reference

Full props, types, defaults.

View API
Copy Button | structyl