---
title: "Create a content item as the data source for a component"
slug: "create-a-content-item-as-the-data-source-for-a-component"
abstract: "Create a content item and assign it as the data source for a component at the same time."
---
# Create a content item as the data source for a component

You can create a new content item at the same time as you assign the item to a component.

To create a new content item as a data source for a component:

1. In the page editor, open the page with the component that you want to create a data source item for, and select the component.

    ![A component with no data source selected in the page editor](https://doc.sitecore.com/api/markdown-image/xp/en/users/101/sitecore-experience-platform/images/ComponentSelected_NoContentItem.png)

2. In the right-hand pane, click **Browse**.
3. In the **Assign content item** dialog, in the content tree, select the parent item for the new content item.
4. Click **Create new**.

    ![The Assign content item dialog box](https://doc.sitecore.com/api/markdown-image/xp/en/users/101/sitecore-experience-platform/images/Horizon_AssignContentItem_CreateNew.png)

5. Select a template.
6. Enter a name for the new content item.
7. Click **Assign**.

Now you can [edit the new content item](https://doc.sitecore.com/xp/en/users/101/sitecore-experience-platform/edit-the-content-item-for-a-component.html "Edit the content item for a component").