New to Telerik UI for ASP.NET CoreStart a free 30-day trial

Images

The TabStrip allows you to include images or sprite icons in its tabs.

Images

To include images in the Telerik UI for ASP.NET Core TabStrip items, use the .ImageUrl() configuration option and pass the image Url as a parameter:

Razor
@(Html.Kendo().TabStrip()
        .Name("tabstrip-images")
        .Items(tabstrip =>
        {
            tabstrip.Add().Text("Baseball")
                .ImageUrl(Url.Content("~/shared/icons/sports/baseball.png"))
                .Content(@<text>
                    Baseball content
                  </text>);
            tabstrip.Add().Text("Football")
                .ImageUrl(Url.Content("~/shared/icons/sports/football.png"))
                .Content(@<text>
                    Football content
                  </text>);
            tabstrip.Add().Text("Basketball")
                .ImageUrl(Url.Content("~/shared/icons/sports/basketball.png"))
                .Content(@<text>
                    Basketball content
                  </text>);
        })
    )

Sprites

To include sprites in the Telerik UI for ASP.NET Core TabStrip items, use the .SpriteCssClasses() configuration option and specify the sprite CSS class:

Razor
@(Html.Kendo().TabStrip()
          .Name("tabstrip-sprites")
          .Items(tabstrip =>
          {
              tabstrip.Add().Text("Brazil")
                  .SpriteCssClasses("brazilFlag")
                  .Content(@<text>
                    Brazil, officially the Federative Republic of Brazil, is the largest country in South America. 
                  </text>);

              tabstrip.Add().Text("India")
                  .SpriteCssClasses("indiaFlag")
                  .Content(@<text>
                        India, officially the Republic of India, is a country in South Asia. 
                  </text>);

              tabstrip.Add().Text("Netherlands")
                  .SpriteCssClasses("netherlandsFlag")
                  .Content(@<text>
                        The Netherlands is a constituent country of the Kingdom of the Netherlands, located mainly in North-West Europe and with several islands in the Caribbean. 
                  </text>);
          })
          .SelectedIndex(0)
    )

Note: In versions before 2025 Q3, the icon-class configuration option sets a sprite CSS class in the items of the TabStrip TagHelper. Starting with version 2025 Q3, the icon-class attribute applies a custom CSS class to the default SVG tab icon element. The sprite-css-classes attribute sets sprite icons to the TabStrip tabs.

See Also

In this article
ImagesSpritesSee Also
Not finding the help you need?
Contact Support