Custom components in Wix Studio Two let you add the element a client asks for when nothing in the Add panel fits. Describe it to Aria, show it a reference image or bring your own code, and you get a working component you can design, bind to data and edit line by line.
This guide covers the three ways to build one, how to connect it to data and how to work with the code behind it.
Build websites faster with AI, while staying in control of every detail. Wix Studio Two’s AI agent, Aria 2.0, generates custom components from simple prompts, and each one runs on custom React code you can open and edit. Give clients the exact element they ask for without leaving the editor.
TL;DR: custom components in Wix Studio Two
A custom component is a visual element, like a card, widget or banner, that Aria builds for you in Wix Studio Two. You can generate one from a description or an image or import your own code, then customize it on the canvas, bind it to data and edit its React code whenever you need to.
You'll learn:
What a custom component is in Wix Studio Two
Three ways to build one, and when to use each
How to generate and customize a component step by step
How to connect components to data and logic
How to edit, reuse and troubleshoot the code behind them
Tips for building components on client projects
What is a custom component in Wix Studio Two?
A custom component is a visual element that appears on your site pages, such as a card, a widget or a banner. When you ask Aria to build something visible, it creates a site extension with a component you can place in the editor and style like any other element.
Behind each one is a React component with code that stays visible and editable. Wix's own examples include an interactive pricing calculator, a bespoke booking card and a data-driven carousel, the kind of client request no template covers.
Worth knowing: Studio Two exposes custom code only. Native editor elements aren't available as code, so when a client needs to change something at code level, build it as a custom component from the start.
Three ways to build a custom component
Studio Two gives you three starting points, depending on what the client gave you and how much code your team wants to write. Here's how they compare.
Method | Start from | Best for |
Generate from a description | A written description of the element | New elements you can describe in a sentence or two |
Recreate from an image | A screenshot or image of an element you like | Matching a design reference or a mockup |
Import your own code | Code files you attach, drag in or paste | Components your team already built elsewhere |
Generate it from a description
Describe what the element should look like, where it goes and what data it uses. The more detail you give, the more accurate the result, and you can ask Aria to regenerate or edit it if the first version isn't right.
Recreate it from a reference image
Upload an image of an existing element you like and Aria can recreate it for you. It's a quick way to turn a mockup or a client's reference into a working component.
Import your own code
If you already have code for an element, attach the files, drag them into the chat or paste the code, and Aria adds the element to your site. Each file can be up to 10 MB, you can import up to 10 files per run and messages to Aria are limited to 100,000 characters.
One thing worth knowing: long code is easier to bring in as a file than as pasted text. If a component spans more than 10 files, a ZIP file may let you import them in a single run.
How to generate a custom component
To generate a custom component in Wix Studio Two, follow these steps.
Open the site in the Studio Two Editor.
Hover over the Add Elements icon at the top left and select Elements.
Click Generate or Import Element.
Describe the element in the Ask me anything field, or add an image or your code.
Review what Aria builds and ask it to regenerate or adjust the element if needed.
Place the element on the page and customize it like any other element.

Worth knowing: generated elements are fully editable once they're on the page, so you can get the structure right with Aria first and refine the styling by hand afterward.
Customize your component
Once Aria adds the component, it's fully editable. Select it and use the action bar at the bottom for common changes, or the Inspector panel on the right for every other setting, such as colors, speed, motion and other effects.
Gali Erez, VP Studio Two at Wix
“Most AI products give you a very limited canvas, but we set out to do what we believe no one has done yet: complete freedom on the canvas, as if you're drawing, while AI works alongside you.”
You can also drag its handles to resize it, move it to a new position on the canvas or tell Aria what to change.
Worth knowing: the options in the Inspector panel vary by component, because they come from what each one was built to do. If a setting you need isn't there, ask Aria to add it before you start building the rest of the client's pages.
Connect components to data and logic
A component that shows real content needs data behind it. When Aria builds a component, it sets up the binding automatically, and you can review or adjust that binding in the Inspector panel whenever the component is selected.
Data sources act as a shared data layer, so several components can read from the same information. A countdown banner and a sale badge can both show the same end date, and changing it once updates both.
Use collections and functions
To show CMS content, ask Aria to connect the component to a collection, or write the connection yourself with the @wix/data package. The Wix Data panel lists every collection on the site.
When Aria builds a feature, it may also create functions behind the scenes, for example to format prices or calculate a discount. They live in a function library, so you can reuse the same logic in several places without repeating it.
Learn more:
One thing worth knowing: binding works the same way for CMS data, business solutions and custom code, so plan which data each component needs before you ask Aria to build it.
Edit the code behind a component
Click Code in the top bar to open the coding environment, the core of developer mode in Studio Two. The first time, click Start Coding and Wix sets up your environment, which takes about a minute.
The coding environment is a browser-based version of Visual Studio Code. You can open any file Aria created and edit it directly, using TypeScript and JavaScript with access to the full @wix/* SDK package library.
Gali Erez, VP Studio Two at Wix
“Studio Two brings together the things professionals need to do their best work. They can start with AI, work visually on the canvas, or go into code, and move between those approaches as the project requires. They stay in control of the result, while Wix provides the tools to make that work ready for clients.”
Packages and version control
Projects are built on React and TypeScript, and you can install additional npm packages by asking Aria or by running standard npm commands in the terminal.
Wix Code uses Git for version control. Open the Source Control panel to review your change history and revert to an earlier version if an edit goes wrong.
Worth knowing: Preview shows your changes in a test environment without touching the live site, and Publish makes them visible to visitors. Preview every code change before you publish a client's site.
Reuse, export and troubleshoot components
Every element you generate is saved under the AI Generated category in the Add panel, so you can place it again anywhere on the same site. To use a component on another site, open the Code panel and copy its code, then import it there.
When something doesn't work, open Aria from the Code panel and describe the problem in plain language, like an opening hours widget showing the wrong day. Ask Aria to explain the cause, then fix it or walk you through the change.
One thing worth knowing: if Aria can't resolve an issue, the Problems panel at the bottom of the editor shows error details, and Wix Logs in the Developer Tools panel covers back-end errors.
Tips for building components on client projects
Write requests the way you'd brief a developer. Say what the component should look like, where it should appear and what data it should use, and the first version will need fewer rounds of changes.
Build one feature per request. Once a component works, ask for the next one instead of describing a whole page of custom elements in a single prompt.
Treat AI-built code like any other code that goes to a client. Aria is powered by AI and may produce unexpected results, so test each component in Preview on every breakpoint before you publish.
Learn more:
Ready to design and code on the same canvas? Start creating with Studio Two today →
Custom components FAQ:
What is a custom component in Wix Studio Two?
A custom component is a visual element, such as a card, widget or banner, that Aria builds as a React component in Wix Studio Two. You place it on the page like any other element, customize it in the Inspector panel and can open its code to edit it.
Do I need to know how to code to build custom components?
No. In Wix Studio Two you can describe the element you want, or upload an image of one, and Aria builds it and adds it to your site. Developers can still open the code in the browser-based Visual Studio Code environment and edit any file directly.
Can I import my own code into Wix Studio Two?
Yes. Open Generate or Import Element, then attach code files, drag them into the chat or paste the code, and Aria adds the element to your site. Each file can be up to 10 MB, with up to 10 files per run and 100,000 characters per message.
Where are generated elements saved?
Generated elements in Wix Studio Two are saved under the AI Generated category in the Add panel, so you can reuse them anywhere on the same site. To see or copy the underlying code, open the Code panel, which is also how you take a component to another site.
Can I undo code changes to a component?
Yes. Wix Code in Studio Two uses Git for version control. Open the Source Control panel to review your change history and revert to a previous version, and use Preview to check changes in a test environment before you publish them to the live site.





.png)

.jpg)
