
The component library in your app editor
Opening the component library
You open the component library from the plus menu in your AI chat, next to where you type your prompts. To open the component library:- Go to your app editor.
- Click the plus icon next to the prompt box in the AI chat.
- Click Explore component library.

Opening the component library from the plus menu
Browsing and previewing components
The component library opens in a large window, with a search box at the top and a list of categories on the left. All components shows everything in the library, and each category groups components by purpose, such as commerce, navigation, or booking and scheduling. You have 3 ways to find a component:- Search: Type a keyword in the search box. It searches the category you have open, so choose All components first to search the whole library.
- Categories: Click a category on the left to see only its components. On a phone, the categories appear as a row above the search box.
- Filters: Click Filters to narrow the list by tag.

Browsing a category in the component library
Adding a component
From a component’s details, you tell the AI how to use it, then add it to your prompt or build it right away. You add one component per message, and Base44 rebuilds it as React code inside your app. To add a component to your app:- Go to your app editor.
- Click the plus icon next to the prompt box in the AI chat, then click Explore component library.
- Click the component you want.
- (Optional) Under How should the AI use it?, describe where it goes, such as a page or section.
- Click Add to chat to place it in your prompt so you can edit the message first, or click Build now to send it right away.

A component's details, with Add to chat and Build now
- Quick add: To add a component without opening its details, click the + on its card.
- Build mode: When you add a component, the AI chat switches to Build mode automatically. Learn more about AI chat modes.
- Looking again: To see a component again later, click its chip in the prompt box or above the message you sent.
- New code libraries: If a component relies on a code library your app doesn’t have yet, Base44 asks you to approve installing it as part of building the component. Learn more about adding and using npm packages.
Creating your own components
Create your own components when you want a piece of UI that fits your brand and that you can reuse across apps, such as a pricing card, a sign-up form or a branded header. You build a component with the AI, then save it. Saved components belong to your workspace, not to the app you made them in. Everyone in your workspace finds them under My Components and can add them to any of the workspace’s apps, the same way as a library component. Saving a component doesn’t add it to the app you’re in. To create a component:- Go to your app editor.
- Click the plus icon next to the prompt box in the AI chat, then click Explore component library.
-
Click Create new component next to the search box.

Creating a new component from the component library
-
Choose how you want to start. A component you pick opens right away as your starting point.
- Start from the library: Pick a ready-made library component.
- Select from your app: Click an element in your app’s preview, and the AI rebuilds it as a component. To stop selecting, press Escape.
- Start from design system: Pick one of your design system’s components. This option appears when your workspace has a design system.
- Start from your own components: Pick one of your saved components. This option appears once your workspace has saved components.
- Or start from scratch: Describe the component you want in the prompt box, then send it.

Choosing how to start a new component
- (Optional) To change the component, describe what you want in the prompt box, then send it.
- (Optional) Click Details to edit the component’s name, description, and guidelines for how the AI should use it.
- Click Save component.
Managing your components
Your workspace’s saved components are listed under My Components in the component library. Open one to change it, make a copy, delete it or add it to your design system. Apps that already use a component keep their own copy, so changing or deleting it only affects what you add from now on. To manage a saved component:- Go to your app editor.
- Click the plus icon next to the prompt box in the AI chat, then click Explore component library.
-
Click My Components, then click the component you want.

A saved component's details, with the More actions menu open
- Choose what you want to do:
Edit a component
Edit a component
- Click Edit component.
- Describe what you want to change in the prompt box, then send it.
- Click Save changes.
Make a copy to change
Make a copy to change
- Click Remix. If you don’t see it, click the More actions icon first.
- (Optional) Describe what you want to change in the prompt box, then send it.
- Click Save component.
Delete a component
Delete a component
- Click the More actions icon , then click Delete.
- Click Delete to confirm.
Add a component to a design system
Add a component to a design system
FAQs
Click a question below to learn more.Does adding a component cost extra credits?
Does adding a component cost extra credits?
Can I change a component after adding it?
Can I change a component after adding it?