Agents

Loading the live block…LIVE · TRY IT
PRESSPROKIND COPY-FIELD

Copy field

A value with a copy button. Pressing it copies the value, swaps the icon for a check and shows Copied. Press blocks: buttons, switches and menus that answer a press.

Open Press blocks in Optic ↗
COPY FOR

Add it with your AI

With Optic connected, your agent calls add_block and the Copy field lands in your file as real layers, in your file’s colors and corners, as one change you can undo. Paste this to it:

In my Optic file, add a Copy field block (add_block, kind "copy-field") where it fits the design, then restyle its parts (Value, Copy, Icon, Check, Toast) to match the frame around it. Keep each part's name so it keeps working. Settings you can change: back.

Make it yours without code

  1. Restyle any part. Click it on the canvas and change its color, size, text or corners.
  2. Tune how it behaves. Select the block and open Interaction in the right panel.
  3. Try it. Press Interact (X) in Optic. Run, Build and your site play it as real HTML and CSS.

Parts

The interaction finds these layers by name. Restyle them freely and keep the names.

  • Value
  • Copy
  • Icon
  • Check
  • Toast

Settings

SettingKey for your agent
Reset afterback

Works in your tools

The same Copy field goes into each tool the way that tool works natively. Copies take the look the preview is showing; switch Dark or Light above first.

  • FramerA live code component. Paste it on the canvas; it plays on your site, with its colors, corners, words and settings in the right panel.
  • FigmaA component with every state as a variant and the interactions between them, so it plays in Present. Paste it into the VE Blocks plugin, coming soon to Figma Community.
  • PaperEditable layers. Paste it on the canvas and restyle every part, then take it out again as code.
  • React and HTMLA component, or a single page, that plays the block as it is. Keep the layer names and restyle freely.

More press blocks

All 25 blocks, prompts and guides →
./archive — end of page

Earn your
stripes.

An independent Archive of exceptional digital design. Selected by editors, shown at full resolution, credited to the people who made it.

Checking systems