Agents
Add it with your AI
With Optic connected, your agent calls add_block and the Stripe it 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 Stripe it block (add_block, kind "stripe-button") where it fits the design, then restyle its parts (Mark, Bar, Count, Burst, Ray) to match the frame around it. Keep each part's name so it keeps working. Settings you can change: count.
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.
- Mark
- Bar
- Count
- Burst
- Ray
Settings
| Setting | Key for your agent |
|---|---|
| Starting count | count |
More press blocks
- 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.
- Liquid togglePRESSA switch whose knob stretches as it travels, like a drop of liquid, and settles with a spring.
- Jelly tabsPRESSSegmented tabs. The highlight slides to the tab you press, squashing on the way like jelly.
- AccordionPRESSQuestions that open one at a time. The rows below make room smoothly and the plus turns into a cross.
- DropdownPRESSA select that opens a menu with a spring. Picking an option moves the tick and updates the value.