> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base44.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding components to your app

> Browse the components library in your app editor to add polished, ready-made UI components that Base44 rebuilds to match your app's theme, fonts, and content.

## What is the components library?

The components 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.

<Tip>
  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.
</Tip>

<Frame caption="The components library in your app editor">
  <img src="https://mintcdn.com/base44/dOpGdA4W6elEHmeG/images/components-library-main.png?fit=max&auto=format&n=dOpGdA4W6elEHmeG&q=85&s=dcf2cd59c79b7156741ceadc76f504b4" alt="The components library window showing the For You tab with a grid of ready-made components" width="2624" height="1506" data-path="images/components-library-main.png" />
</Frame>

***

## Opening the components library

You open the components library from the plus menu in your AI chat, next to where you type your prompts.

<Tip>
  **Before you begin:** Switch your AI chat to Build mode before you add a component. For more on chat modes, see [AI chat modes](/Building-your-app/AI-chat-modes).

  <Frame caption="Switching the AI chat to Build mode">
    <img src="https://mintcdn.com/base44/6Fyds_tvRyGxgstW/images/Build-mode.png?fit=max&auto=format&n=6Fyds_tvRyGxgstW&q=85&s=37f80ddc1fefa7a492923d63117ac5ed" alt="Selecting Build mode from the mode menu in the AI chat" style={{ width: "55%", display: "block", margin: "0 auto" }} width="708" height="354" data-path="images/Build-mode.png" />
  </Frame>
</Tip>

**To open the components library:**

1. Go to your app editor.
2. In the AI chat, click the plus icon next to the prompt box.
3. Click **Explore components library**.

<Frame caption="Opening the components library from the plus menu">
  <img src="https://mintcdn.com/base44/5wH2F4qY56CQHHvC/images/explore-components-library.png?fit=max&auto=format&n=5wH2F4qY56CQHHvC&q=85&s=f44412880da89ba6f22421d70b878f64" alt="The AI chat plus menu with Explore components library highlighted" style={{ width: "60%", display: "block", margin: "0 auto" }} width="946" height="508" data-path="images/explore-components-library.png" />
</Frame>

***

## Browsing and previewing components

The components library opens in a full window with a search bar and category tabs across the top. **For You** shows recommended components, and the remaining tabs group components by purpose, such as **Commerce**, **Content**, **Dashboards & Analytics**, and **Navigation**.

You have two ways to find a component:

* **Search:** Type a keyword in the search bar to filter across all components.
* **Categories:** Click a category tab to browse components for that purpose.

<Frame caption="Browsing and searching in the components library">
  <img src="https://mintcdn.com/base44/dOpGdA4W6elEHmeG/images/components-library.png?fit=max&auto=format&n=dOpGdA4W6elEHmeG&q=85&s=642d29d34ee57a2187dda2b339e9d3af" alt="The components library window with a search bar, category tabs, and a grid of components" width="2464" height="1416" data-path="images/components-library.png" />
</Frame>

<Tip>
  Click a component to open its preview, then interact with it to try its different states before you add it.
</Tip>

***

## Adding a component to your app

You add one component at a time. Clicking **Add to chat** places the component in your AI chat with a message that you can edit before you send it. When you send the message, Base44 rebuilds the component as React code inside your app and adapts its styling, fonts, and copy to match your design.

<Frame caption="Adding a component to the chat from its preview">
  <img src="https://mintcdn.com/base44/hGQAaFPSdcnDF0mm/images/add-to-app-component.png?fit=max&auto=format&n=hGQAaFPSdcnDF0mm&q=85&s=96cdaafa10841ed6b59fd3fcc7107a58" alt="A component preview in the components library with the Add to chat button highlighted" width="2278" height="1238" data-path="images/add-to-app-component.png" />
</Frame>

**To add a component to your app:**

1. In the components library, click the component you want.
2. Click **Add to chat**.
3. Add any extra instructions in the prompt box, then send your message.

<Frame caption="A component rebuilt inside your app">
  <img src="https://mintcdn.com/base44/hGQAaFPSdcnDF0mm/images/added-component.png?fit=max&auto=format&n=hGQAaFPSdcnDF0mm&q=85&s=b06dec7dc9ecefe6c870a13177274fdd" alt="A component added to an app and rebuilt in the app editor" width="2932" height="1582" data-path="images/added-component.png" />
</Frame>

<Note>
  If a component relies on a code library your app does not have yet, Base44 asks you to approve installing it as part of building the component. For more on how this works, see [Adding and using npm packages](/Building-your-app/NPM-packages).
</Note>

***

## FAQs

Click a question below to learn more.

<AccordionGroup>
  <Accordion title="Can I add more than one component at a time?">
    You add one component per message. To add another, open the components library again and repeat the steps.
  </Accordion>

  <Accordion title="Does adding a component cost extra credits?">
    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.
  </Accordion>

  <Accordion title="Can I change a component after adding it?">
    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.
  </Accordion>
</AccordionGroup>
