Agents
Add it with your AI
With Optic connected, your agent calls add_block and the Tag input 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 Tag input block (add_block, kind "tag-input") where it fits the design, then restyle its parts (Chip, Text, X, Input) to match the frame around it. Keep each part's name so it keeps working. Settings you can change: max.
Make it yours without code
- Restyle any part. Click it on the canvas and change its color, size, text or corners.
- Tune how it behaves. Select the block and open Interaction in the right panel.
- 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.
- Chip
- Text
- X
- Input
Settings
| Setting | Key for your agent |
|---|---|
| Most tags | max |
More type blocks
- One-time codeTYPESix boxes for a code. Type or paste; the cursor moves on by itself, and a full code is confirmed with a ripple.
- Hold to deletePRESSPress and hold. The button fills while held and only deletes when the fill completes; letting go early undoes it.
- Confirm sendPRESSOne press asks, the second sends. The button turns into Send it? with a quiet cancel, then confirms.
- Copy fieldPRESSA value with a copy button. Pressing it copies the value, swaps the icon for a check and shows Copied.
- Stripe itPRESSThe house like button. Pressing stripes it: the bars fill in turn, the count ticks up and a burst marks the moment.
- Liquid togglePRESSA switch whose knob stretches as it travels, like a drop of liquid, and settles with a spring.