Skip to main content
The component library is a collection of polished, ready-made UI components that you can add to your app straight from the AI chat in your app editor. Instead of describing a layout from scratch, you browse curated components, pick the one you want, and Base44 rebuilds it inside your app. You can also create your own components and save them, so everyone in your workspace can reuse them.
When you add a component, Base44 themes it to match your site, adapting its colors, fonts, and content to fit your app rather than dropping in a generic block. You can always customize the design further by asking the AI chat.
A screenshot of the Component library window with All components selected, the Categories list and a colorful component grid

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:
  1. Go to your app editor.
  2. Click the plus icon next to the prompt box in the AI chat.
  3. Click Explore component library.
A screenshot of the AI chat plus menu with the cursor on 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.
The library also has categories for your workspace’s own components. My Components lists the components your workspace has saved, and Design System lists your design system’s components, if you have one. Learn more about using your design system when building. Hover over a component to see it in action, then click it to open its details. You see a short description and a live preview that you can switch between desktop and mobile. Some components also have Try different states, so you can see each state before you add it. Use the arrows next to the component’s name to move to the previous or next one.
A screenshot of the component library with the Commerce category outlined and its components shown with Filters

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:
  1. Go to your app editor.
  2. Click the plus icon next to the prompt box in the AI chat, then click Explore component library.
  3. Click the component you want.
  4. (Optional) Under How should the AI use it?, describe where it goes, such as a page or section.
  5. 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 screenshot of a component's details with its live preview, description, and Add to chat and Build now outlined

A component's details, with Add to chat and Build now

More about adding components:
  • 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.
Before you create a component:
  • Viewers: Workspace viewers can browse the component library but can’t create or save components.
  • Credits: Building and changing a component with the AI uses credits.
To create a component:
  1. Go to your app editor.
  2. Click the plus icon next to the prompt box in the AI chat, then click Explore component library.
  3. Click Create new component next to the search box.
    A screenshot of the component library with My Components and Design System listed and Create new component outlined

    Creating a new component from the component library

  4. 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.
    A screenshot of the Create new component window with 4 ways to start and a prompt box to start from scratch

    Choosing how to start a new component

  5. (Optional) To change the component, describe what you want in the prompt box, then send it.
  6. (Optional) Click Details to edit the component’s name, description, and guidelines for how the AI should use it.
  7. 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.
Who can change a component:
  • Your components: You can edit and delete the components you created. Once one is in a design system, only owners and admins can edit it.
  • Owners and admins: Workspace owners and admins can edit and delete any saved component.
To manage a saved component:
  1. Go to your app editor.
  2. Click the plus icon next to the prompt box in the AI chat, then click Explore component library.
  3. Click My Components, then click the component you want.
    A screenshot of a saved component's details with the More actions menu open and Add to design system outlined

    A saved component's details, with the More actions menu open

  4. Choose what you want to do:
If the component is in a design system, the design system shows your changes too.
  1. Click Edit component.
  2. Describe what you want to change in the prompt box, then send it.
  3. Click Save changes.
Remix creates a copy of a component that you can change and save as a new component. You can also remix a library component. Click it in any category, then click Remix in its details.
  1. Click Remix. If you don’t see it, click the More actions icon first.
  2. (Optional) Describe what you want to change in the prompt box, then send it.
  3. Click Save component.
Deleting a component removes it from your workspace for everyone, and it can’t be undone. A design system that holds the component keeps its own copy.
  1. Click the More actions icon , then click Delete.
  2. Click Delete to confirm.
Workspace owners and admins can add a saved component to a design system, so it’s part of your brand’s set of components. Learn how to add a saved component to your design system.

FAQs

Click a question below to learn more.
No. Adding a component is a standard build message, so it uses credits the same way any other prompt does. There is no separate charge for browsing or adding a component.
Yes. A component becomes part of your app once it is built, so you can ask the AI chat to restyle it, change its content, or adjust its layout like any other part of your app.