# Use components to resolve script dependencies

Each client-side component requires you to describe all scripts that it depends on, so you can use it. For example, if you want to use the `sf-image-selector` in your designer view, you need to describe the 26 scripts the selector depends on. For details, see [Use-an-image-selector](https://www.progress.com/documentation/sitefinity-cms/image-selector-mvc).

Sitefinity CMS will automatically resolve and populate the components you rely on by analyzing your designer view. If no other designer views with explicitly set priority exists, your analyzed designer view will be set priority 1. This eliminates the need for you to have `DesignerVIew.YourView.json` file, unless you have dependencies to custom scripts. If you have a `JSON` file that matches the convention (even if empty), this automatic scripts registration will not occur.

You can also specify the component you rely on as a single alias, instead of having to describe all component's script dependencies. What you do is add just **one** dependency to the component. For example, you add a dependency to the `sf-image-selector` and as a result, your `DesignerView.YourView.json` has the following content:

```JSON
{
     "priority": 1,
     "components": ["sf-image-selector"]
}
```

Of course, you can still list in your `DesignerView.YourView.json` all the scripts you want to load. You can even combine both scripts and components, thus loading your custom scripts while in the same time working with the built-in components.

The following list describes all components you can use:

 <table>
<colgroup><col><col></colgroup>
<tbody>
<tr>
<th>Component</th>
<th>Description</th>
</tr>
<tr>
<td>

<strong>[sf-collection](https://www.progress.com/documentation/sitefinity-cms/use-a-generic-collection-directive-mvc)</strong>

</td>
<td>

Displays a collection of selectable items.

</td>
</tr>
<tr>
<td>

<strong>[sf-tree](https://www.progress.com/documentation/sitefinity-cms/generic-tree-directive-mvc)</strong>

</td>
<td>

Displays a hierarchical collection of selectable items.

</td>
</tr>
<tr>
<td>

<strong>[sf-infinite-scroll](https://www.progress.com/documentation/sitefinity-cms/infinite-scroll-directive-mvc)</strong>

</td>
<td>

Infinite scrolling through items.

</td>
</tr>
<tr>
<td>

<strong>[sf-search-box](https://www.progress.com/documentation/sitefinity-cms/search-box-directive-mvc)</strong>

</td>
<td>

Interface for user input used by the searching functionality.

</td>
</tr>
<tr>
<td>

<strong>[sf-sort-box](https://www.progress.com/documentation/sitefinity-cms/sort-box-directive-mvc)</strong>

</td>
<td>

Functionality for displaying sort options.

</td>
</tr>
<tr>
<td>

<strong>[sf-drag-drop](https://www.progress.com/documentation/sitefinity-cms/drag-and-drop-directive-mvc)</strong>

</td>
<td>

Add drag and drop functionality to an HTML element.

</td>
</tr>
<tr>
<td>

<strong>[sf-flat-taxon-field](https://www.progress.com/documentation/sitefinity-cms/flat-taxon-field-mvc)</strong>

</td>
<td>

Select and create taxons by typing their name in a text box.

</td>
</tr>
<tr>
<td>

<strong>[sf-image-field](https://www.progress.com/documentation/sitefinity-cms/image-field-mvc)</strong>

</td>
<td>

Select and display an image from the existing libraries in your website.

</td>
</tr>
<tr>
<td>

<strong>[sf-media-field](https://www.progress.com/documentation/sitefinity-cms/media-field-mvc)</strong>

</td>
<td>

Select and display a document or a video from the existing libraries in your website.

</td>
</tr>
<tr>
<td>

<strong>[sf-news-selector](https://www.progress.com/documentation/sitefinity-cms/news-selector-mvc)</strong>

</td>
<td>

Select news from your Sitefinity CMS application.

</td>
</tr>
<tr>
<td>

<strong>[sf-page-selector](https://www.progress.com/documentation/sitefinity-cms/page-selector-mvc)</strong>

</td>
<td>

Select pages from your Sitefinity CMS application.

</td>
</tr>
<tr>
<td>

<strong>[sf-multisite-page-selector](https://www.progress.com/documentation/sitefinity-cms/multisite-page-selector-mvc)</strong>

</td>
<td>

Select pages, based on the sites and available languages in your Sitefinity CMS application.

</td>
</tr>
<tr>
<td>

<strong>[sf-taxon-selector](https://www.progress.com/documentation/sitefinity-cms/flat-taxon-selector-mvc)</strong>

</td>
<td>

Select taxa from a flat taxonomy like <em>Tags</em> or a custom classification.

</td>
</tr>
<tr>
<td>

<strong>[sf-hierarchical-taxon-selector](https://www.progress.com/documentation/sitefinity-cms/hierarchical-taxon-selector-mvc)</strong>

</td>
<td>

Select taxa from a hierarchical taxonomy like <em>Categories</em> or a custom classification.

</td>
</tr>
<tr>
<td>

<strong>[sf-dynamic-items-selector](https://www.progress.com/documentation/sitefinity-cms/dynamic-items-selector-mvc)</strong>

</td>
<td>

Select dynamic content items from your Sitefinity CMS application.

</td>
</tr>
<tr>
<td>

<strong>[sf-date-time-picker](https://www.progress.com/documentation/sitefinity-cms/datetime-picker-mvc)</strong>

</td>
<td>

Simple way of selecting date and time.

</td>
</tr>
<tr>
<td>

<strong>[sf-timespan-selector](https://www.progress.com/documentation/sitefinity-cms/timespan-selector-mvc)</strong>

</td>
<td>

Select period by concrete dates or time interval.

</td>
</tr>
<tr>
<td>

<strong>[sf-site-selector](https://www.progress.com/documentation/sitefinity-cms/site-selector-mvc)</strong>

</td>
<td>

Select different sites defined in your Sitefinity CMS application.

</td>
</tr>
<tr>
<td>

<strong>[sf-language-selector](https://www.progress.com/documentation/sitefinity-cms/language-selector-mvc)</strong>

</td>
<td>

Select different culture defined in your Sitefinity CMS application.

</td>
</tr>
<tr>
<td>

<strong>[sf-link-selector](https://www.progress.com/documentation/sitefinity-cms/link-selector-mvc)</strong>

</td>
<td>

Generate hyperlinks to a website, a page from this site, an anchor in the text or an email.

</td>
</tr>
<tr>
<td>

<strong>[sf-library-selector](https://www.progress.com/documentation/sitefinity-cms/library-selector-mvc)</strong>

</td>
<td>

Select from a list of all existing libraries in your website.

</td>
</tr>
<tr>
<td>

<strong>[sf-image-selector](https://www.progress.com/documentation/sitefinity-cms/image-selector-mvc)</strong>

</td>
<td>

Display and retrieve one or several selected images.

</td>
</tr>
<tr>
<td>

<strong>[sf-document-selector](https://www.progress.com/documentation/sitefinity-cms/document-selector-mvc)</strong>

</td>
<td>

Display and retrieve one or several selected documents.

</td>
</tr>
<tr>
<td>

<strong>[sf-role-selector](https://www.progress.com/documentation/sitefinity-cms/role-selector-mvc)</strong>

</td>
<td>

Display and select from a list of all existing roles defined in your website.

</td>
</tr>
<tr>
<td>

<strong>[sf-user-selector](https://www.progress.com/documentation/sitefinity-cms/user-selector-mvc)</strong>

</td>
<td>

Display and select from a list of all existing users defined in your website.

</td>
</tr>
<tr>
<td>

<strong>[sf-feed-selector](https://www.progress.com/documentation/sitefinity-cms/feed-selector-mvc)</strong>

</td>
<td>

Display and select from a list of the existing feeds defined in your website.

</td>
</tr>
<tr>
<td>

<strong>[sf-mailing-list-selector](https://www.progress.com/documentation/sitefinity-cms/mailing-list-selector-mvc)</strong>

</td>
<td>

Display and select from a list of the existing mailing lists defined in your website.

</td>
</tr>
</tbody>
</table>
