# Component Models 

> Source: https://agilitycms.com/docs/developers/component-models

## What are Component Models and why are they important?

As a Developer you’ll be tasked with creating and defining the components in Agility that will be used to create the Architecture of your pages. 

A Component Model is like a Content Model in the sense that they can have fields that relate to other content but will instead represent a functional UI component. Ultimately, an Editor should be able to add a Component Model to a Page and it should render some UI and display content based on the fields of the component or its related content. 

Each Component will need corresponding code within your site. If Components are not defined by Developers and used by Editors, there will be nothing to output to your site. 

## What can be created with Component Models?

You can create anything from a simple, structured piece of text to a more complex item that has added functionality and integrates with other platforms and systems. A common example would be an Image Slider which could contain fields for: 

- Number of Slides => [Number] 
- Rotation Speed => [Number] 

- Slides => [Linked Content Reference to Slides] 

![](https://cdn.aglty.io/agility-cms-docs/images/block-editor/Screenshot%202023-09-28%20at%202.16.11%20PM-09282023171637.png)

At the end of the day, the possibilities are endless and depend entirely on the need and structure of your site! We recommend designing your page with a tool like Figma and then building out the Models and Components you and your Editors will need. 

## How to Create a Component Model

1. Navigate to the **Models** section of your Agility Instance and then click **Component Models**


![](https://cdn.aglty.io/agility-cms-docs/images/block-editor/Refresh%20-%20Component%20Models-03012024153149.png)

2. Click **New Component Model**


3. Give the Component a **Name** and then click **Add Component**


![](https://cdn.aglty.io/agility-cms-docs/images/block-editor/Refresh%20-%20Component%20Name-03012024153246.png)

4. You’ll then be taken to a page with your Blank Component Model where you can drag and drop Fields or create new ones. 

![](https://cdn.aglty.io/agility-cms-docs/images/block-editor/Refresh%20-%20Blank%20Component-03012024153330.png)

There are many types of fields you can add to your Component Model. 

All fields have a Field Label and Description and have the possibility of being Required and or Hidden. Depending on the selected field type, you may have other options such as input validation and more. 

## What's Next?

Once you've created your Component Model with some fields, Editors can start adding the Component to pages. 

> **Handling Component Rendering** — In order for your Component Model to actually render anything in your digital solution, you'll need to add a corresponding front-end component that will be responsible for outputting templated HTML with your field properties.

**Further Reading**


- [Content Models](https://agilitycms.com/docs/developers/content-models)
- [Fields](https://agilitycms.com/docs/developers/fields)
- [Managing Pages](https://agilitycms.com/docs/editors/managing-pages)

---

## Related pages

- [Content-first Approach](https://agilitycms.com/docs/developers/content-first.md)
- [Content Models](https://agilitycms.com/docs/developers/content-models.md)
- [Fields](https://agilitycms.com/docs/developers/fields.md)
- [Nest, Link or Share? Choosing Linked Content Field Types](https://agilitycms.com/docs/developers/linked-content-field-types.md)
- [Getting Started with Linked Content](https://agilitycms.com/docs/developers/getting-started-with-linked-content.md)
- [Sitemaps](https://agilitycms.com/docs/developers/sitemaps.md)
- [Page Models](https://agilitycms.com/docs/developers/page-models.md)
- [Setting Up Preview](https://agilitycms.com/docs/developers/setting-up-preview.md)
- [Handling Agility URLs](https://agilitycms.com/docs/developers/handling-agility-urls.md)
- [Deployment & Code Repositories](https://agilitycms.com/docs/developers/deployment-code-repositories.md)
- [Tagging Content in Agility](https://agilitycms.com/docs/developers/tagging-content-in-agility.md)
- [Managing SEO for Developers](https://agilitycms.com/docs/developers/manging-seo-for-developers.md)
- [Mastering Nested Linked Content in Agility CMS: Enhance Hierarchical Data Management](https://agilitycms.com/docs/developers/nested-linked-content.md)
- [Advanced Field Validation with Regular Expressions](https://agilitycms.com/docs/developers/advanced-field-validation-with-regular-expressions.md)
- [Dynamic Content Control: Implementing Hide/When Formulas in Your Headless CMS Content Model](https://agilitycms.com/docs/developers/dynamic-content-control-implementing-hide-when-formulas-in-your-headless-cms-content-model.md)
- [Grouping Components into Tabs, Accordions, and Sections](https://agilitycms.com/docs/developers/grouping-components-into-tabs.md)
- [Conditional & Cross-Field Validation](https://agilitycms.com/docs/developers/conditional-and-cross-field-validation.md)
- [Set Up Web Studio with Any Framework](https://agilitycms.com/docs/developers/web-studio-setup-any-framework.md)
- [Troubleshooting Web Studio](https://agilitycms.com/docs/developers/troubleshooting-web-studio.md)
- [Content Modeling Anti-Patterns](https://agilitycms.com/docs/developers/content-modeling-anti-patterns.md)
- [Designing a Taxonomy That Scales](https://agilitycms.com/docs/developers/designing-a-taxonomy.md)
- [Map Your Design System to Component Models](https://agilitycms.com/docs/developers/design-system-to-component-models.md)
- [Structured Content Explained](https://agilitycms.com/docs/developers/structured-content-explained.md)
- [Beyond the Website: Apps, Kiosks, Email and In-App](https://agilitycms.com/docs/developers/beyond-the-website.md)
- [Make Your Content Model Agent-Friendly](https://agilitycms.com/docs/developers/agent-friendly-content-models.md)
- [Component Visibility](https://agilitycms.com/docs/developers/component-visibility.md)

Index of every docs page: https://agilitycms.com/docs/llms.txt
