# Icons

The SplitButton provides options for visually enhancing its textual content by adding icons. You can specify them through the following configuration methods:

* `Icon()`—This method displays the appropriate [Kendo UI for jQuery font icon.](https://docs.telerik.com/kendo-ui/styles-and-layout/sass-themes/font-icons)

  ```Razor HtmlHelper
      @(Html.Kendo().SplitButton()
          .Name("splitButton")
          .Text("Plus")
          .Icon("plus")
      )
  ```

  ```Razor TagHelper
  <kendo-splitbutton name="splitButton" text="Plus" icon="plus">
  </kendo-splitbutton>
  ```

* `SpriteCssClass()`—This method displays the icon as a background of a span element instead.

  ```Razor HtmlHelper
      @(Html.Kendo().SplitButton()
          .Name("splitButton")
          .Text("Plus")
          .SpriteCssClass("myPlusIcon")
      )
  ```

  ```Razor TagHelper
      <kendo-splitbutton name="splitButton" text="Plus" sprite-css-class="myPlusIcon">
      </kendo-splitbutton>
  ```

* `ImageUrl()`—This method applies image icons.

  ```Razor HtmlHelper
      @(Html.Kendo().SplitButton()
              .Name("splitButton")
              .Text("Plus")
              .ImageUrl("url/to/myPlusIcon.png")
      )

  ```

  ```Razor TagHelper
      <kendo-splitbutton name="splitButton" text="Plus" image-url="url/to/myPlusIcon.png">
      </kendo-splitbutton>
  ```

## Font Icons

You can integrate FontAwesome or other font icons by setting the required third-party CSS classes over the `.SpriteCssClass()` configuration method. However, this approach will render a `k-sprite` CSS class, which applies font and size styles that may interfere with the font icon styles.

```Razor HtmlHelper
    <link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet" />
    <style>
        .k-button .fa {
            font-size: inherit;
            line-height: inherit;
            width: auto;
            height: auto;
            margin-left: 0;
        }
    </style>

    @(Html.Kendo().SplitButton()
        .Name("splitButton")
        .Text("Archive")
        .SpriteCssClass("fa fa-archive")
        .Items(items =>
        {
            items.Add().Text("Item 1");
            items.Add().Text("Item 2");
        })
    )
```

```Razor TagHelper
    <link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet" />
    <style>
        .k-button .fa {
            font-size: inherit;
            line-height: inherit;
            width: auto;
            height: auto;
            margin-left: 0;
        }
    </style>

    <kendo-splitbutton name="splitButton" text="Archive" sprite-css-class="fa fa-archive">
        <splitbutton-items>
            <item text="Item 1"></item>
            <item text="Item 2"></item>
        </splitbutton-items>
    </kendo-splitbutton>
```

## See Also

* [Icons in the SplitButton (Demo)](https://demos.telerik.com/aspnet-core/splitbutton/icons)
* [Server-Side API](https://www.telerik.com/aspnet-core-ui/documentation/api/splitbutton)
