# Getting Started with the Chip

This tutorial explains how to set up a basic Telerik UI for ASP.NET MVC Chip and highlights the major steps in the configuration of the component.

You will initialize a Chip control, configure its icons, and handle its events.

![Sample Telerik UI for ASP.NET MVC Chip](https://www.telerik.com/aspnet-mvc/documentation/assets/c2edf04c739f63bd9e8ff88ef5fc3f64/chip-basic.png)

## Prerequisites

To successfully complete the tutorial, you need a project that is already configured to use the Telerik UI for ASP.NET MVC components:

* To create a new pre-configured project for the Telerik UI for ASP.NET MVC components, you can [use a project template](https://www.telerik.com/aspnet-mvc/documentation/getting-started-mvc/first-steps).

* To manually configure an existing project by using NuGet, see the [Adding Telerik UI through NuGet](https://www.telerik.com/aspnet-mvc/documentation/getting-started/setup-with-nuget).

## 1. Prepare the CSHTML File

The first step is to add the required directives at the top of the `.cshtml` document:

* To use the Telerik UI for ASP.NET MVC HtmlHelpers:
  ```
  @using Kendo.Mvc.UI
  ```

## 2. Initialize the Chip

Use the Chip HtmlHelper  to add the component to a page. The `Name()` configuration method is mandatory as its value is used for the `id` and the `name` attributes of the Chip's Html element.

```Razor HtmlHelper
    @using Kendo.Mvc.UI

    @(Html.Kendo().Chip()
            .Name("chip")
    )
```

## 3. Add an Icon

You can display an icon in the Chip by configuring the [`Icon`](https://www.telerik.com/aspnet-mvc/documentation/api/kendo.mvc.ui.fluent/chipbuilder#iconsystemstring) option. for more information about the variety of the icons supported by the chip, refer to the article on [customizing the chip](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/navigation/chip/customization).

```Razor HtmlHelper
     @(Html.Kendo().Chip()
            .Name("iconSaveChip")
            .Icon("save")
    )
```

## 4. Add a Label

To display a label on the Chip, use the [`Label`](https://www.telerik.com/aspnet-mvc/documentation/api/kendo.mvc.ui.fluent/chipbuilder#labelsystemstring) option.

```Razor HtmlHelper
     @(Html.Kendo().Chip()
            .Name("iconSaveChip")
            .Icon("save")
            .Label("Save")
    )
```

## Next Steps

* [Referencing Existing Component Instances](https://docs.telerik.com/kendo-ui/intro/widget-basics/events-and-methods#referencing-existing-component-instances)
* [Demo Page for the Chip](https://demos.telerik.com/aspnet-mvc/chip)

## See Also

* [Using the API of the Chip for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/chip/api)
* [Client-Side API of the Chip HtmlHelper for ASP.NET MVC](https://docs.telerik.com/kendo-ui/api/ui/chip)
* [Server-Side API of the Chip HtmlHelper for ASP.NET MVC](https://www.telerik.com/aspnet-mvc/documentation/api/chip)
* [Knowledge Base Section](https://www.telerik.com/aspnet-mvc/documentation/knowledge-base)
