Introduction

Blutui AI Components accelerates the development of your Blutui site by enabling you to generate custom components. This facilitates easy editing within Canopy, Blutui's site editing interface.

Prerequisites

Getting started

1

Access Blutui AI Components

  • Navigate to Blutui AI Components.
  • If you don't have an account, create a Blutui login by signing up on the AI app.
2

Generate Components

Once logged in, you can start typing the description of the component you want to generate in the Generate Component textbox.

Optionally, you can choose a component from the available bubbles.

Blutui AI Components textbox

After describing your desired component, click the submit icon. Your component will now be generated.

Prompt

Give me a Our Prices section in dark theme with a pricing table.

Generated Component

3

Refine Your Components

After generating your component, you can iterate and refine it to better suit your needs.

Prompt

Make the buttons pink.

Refined Component

You can keep refining your component until you are happy with it.

4

View UI or Code for Each Iteration

After each iteration, you have the option to view either the visual representation of the component or its code.

UI and Code buttons

Click on the UI button to preview the component's appearance based on the latest changes. Click on the Code button to see the updated code, which you can copy and integrate directly into your Blutui project. This allows you to toggle between the component's look and its code at every stage, making customization simple and intuitive.

5

Edit the Code in Real-Time

Code editing

When you click on the Code button, you can directly edit the component’s code. Any changes you make will instantly update the UI preview on the left side of your screen, allowing you to see your adjustments in real time. Once you're satisfied with the modifications, click Save Changes to keep them.

If you decide not to apply the changes, you can simply choose Discard to revert to the previous version. This feature gives you full control over fine-tuning the component’s design and functionality.

6

Using your generated component in a Blutui project

Copy the generated component code by clicking on the Code button for that components iteration.

Generated Code

Open your Blutui project and paste the code.

Paste Code on Blutui project

View the changes.

Canopy preview

Additional Resources

Conclusion

You've now successfully integrated AI Components with your Blutui project.

Was this helpful?