Skip to content

Components: build once, reuse everywhere with your agents

Boris Janković
Concert ticket components on the Wonder canvas, with Claude Code and Codex cursors beside a concert card and ticket header.

Components are here, for everyone. Turn any design into a component, place it anywhere in your file, and every instance follows it on every page, whether you, a teammate or an agent changes it. Your agents use the same components, in a chat in the desktop app (download it here) or from any agent on the Wonder MCP.

Don't see Components yet? Reload Wonder, or update the desktop app. Agents outside Wonder, like Cursor, get the component tools once you reconnect Wonder in them. Chats inside Wonder pick them up on their own.

Components

  • Make a component from any design. Select it and press ⌘⌥K, or choose Create component in ⌘K, the right-click menu or the Properties panel. The main stays right where you made it.
  • Instances follow their main. Change the main and every instance updates on every page, whoever made the change, even an agent working while the file is closed.
  • Choose what each instance can change. On the main, expose a layer's text, visibility, icon or image as a property, and set it on each instance.
  • Variants and states. Add variants such as Primary and Secondary, and the states Default, Hover, Focus, Pressed and Disabled. Pick them on any instance and edit them on the main.
  • Overrides where the main allows them. One click on the main lets its instances change a fill, border, radius, gap or padding, with a variable or a value of their own. Allow all overrides opens every style section on its instances, and stays off until you turn it on.
  • Swap and nest. Swap an instance for another component and it keeps its place and size, or drag a component from the panel onto it while holding ⌥. Put components inside components, and let instances set or swap the nested ones.
  • The Components panel. Every component in the file, under Layers, with search, / groups, thumbnails, variants and how many instances each has. Click, press Enter or drag to place one, or place it by name from ⌘K.
  • Easy to spot. Mains and instances have their own icons and the component color in Layers, on the canvas and in the chat.
  • Reset, detach or go to the main. Reset all changes on an instance, detach it with ⌘⌥B, or jump to its main and back. If someone deletes a main, Restore main brings it back from any of its instances.
  • Copies stay linked. Duplicate, copy and paste instances within a file or into another file, and they stay linked to one component. Duplicating a main places a new instance, not a second main.
  • Comments stay on their instance. A comment on a layer inside an instance stays on that instance.
  • Clean code. Copy as code writes each component once and its instances as tags, in plain React with no dependencies.
  • Not yet. Components live in their file, so there are no libraries shared between files yet, and components pasted from Figma still arrive as plain layers.

Components with your agents

  • Four new tools. Any agent on the Wonder MCP can find, create, change and delete components with get_components, create_components, update_components and delete_components.
  • Turn a design into components. Select a design and choose Create components in the Wonder menu beside it. Add a note on what to make, and your agent turns it into components.

Comments

  • React with emoji to any comment, and see everyone's reactions live.
  • Bring back Preview comments. In a Next.js Preview, deleting an element in your code removes its comments, whether you or an agent deleted it. Editors can show comments a code reload removed from the Comments panel menu, and restore them.

Chats

  • Drop files anywhere. Drop an image or file anywhere on a chat to add it to your message.
  • Add your selection. Click the Selection chip, or press ⌘L while typing, to add each selected layer to your message.
  • Say how a prototype should work. Create prototype lets you add a note before it sends, and choose which chat it goes to.
  • Designs show up sooner. In Claude Code chats in the desktop app, design requests start with the canvas context the agent needs, and a new design starts appearing before the agent's canvas call finishes.
  • Tidier menus. The model menu groups related settings with fewer dividers, the account menu uses the same compact rows, and wide tables scroll out to the chat's edges.

Code prototypes

  • Big selections, explained. When frames are too large for one prototype, the agent says so and lets you choose, instead of quietly leaving some out.
  • Faster changes. Agents change a prototype without fetching the frames' code again or re-reading the prototype first.

Canvas and files

  • Copy several designs as one PNG with Copy as PNG (⌘⇧C).
  • A compact color picker. Picking a color, gradient or variable takes less room and works the same way everywhere.
  • Repeating gradients. Repeating linear, radial and conic gradients draw on the canvas, so agents can make stripes and patterns.
  • File tab previews. In the desktop app, hover a file tab to see its thumbnail and when it was last edited.
  • Search every folder. Search on the Files page looks in every folder and shows where each result is.
  • Capture keeps what you see. In the desktop app, Capture includes an open dialog or popover, and sections the page keeps closed stay closed.
  • What's new in the Help menu lists the latest changelog posts.

Large files

  • Faster saves. Large files save in about half the time.
  • Small files stay quick. A small file opens in seconds, even while a very large file is loading.

Bug fixes

  • Fixed signing in with Google inside an app's Preview.
  • Fixed typing "Delete" in ⌘K with a layer selected picking Delete current page instead of deleting the layer.
  • Fixed agents' canvas steps failing after a chat lost its connection mid-reply, or while the desktop app renewed your sign-in.
  • Fixed very large files that agents write to a lot failing to open or save.
  • Fixed a slow start after an update resetting your chosen models.
  • Fixed text an agent set in a font installed on your computer drawing in Inter.
  • Fixed SVGs with radial gradients, clip paths, masks or drop shadows drawing nothing.
  • Plus smaller fixes across the canvas, comments, billing and Windows.