# Closable Tabs

The TabStrip enables you to render a close button inside its tabs.

You can enable this behavior for all tabs by using the [`closable`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstripcomponent#closable) option of the TabStrip, or for each individual tab through the [`closable`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstriptabcomponent#closable) option of the [`TabStripTab`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstriptabcomponent) component.

The following example demonstrates how to configure closable tabs.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/layout/tabstrip/closable/source.txt)

## Configuring the Close Button Icon

You can change the close button icons of the tabs by using a predefined or custom icon and SVG icons.

The TabStrip enables you to customize the icon inside the close buttons of the tabs by using:

* [`closeIcon`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstripcomponent#closeicon)—Sets a font icon inside the close button of the tabs by using one of the predefined icons. For the full list of available icons, go to the [list of font icons supported by Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/components/icons/icon/icon-list).
* [`closeSVGIcon`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstripcomponent#closesvgicon)—Sets an SVG icon inside the close button. For the full list of available icons, go to the [list of font icons supported by Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/components/icons/svgicon/svgicon-list).
* [`closeIconClass`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstripcomponent#closeiconclass)—Displays a custom icon from a CSS class. Using the `closeIconClass` is suitable for rendering [FontAwesome](https://fontawesome.com/) or other third-party font icons.

### Using Font Icons

To display a predefined font icon inside the close button of all tabs, use the [list of font icons supported by Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/components/icons/icon/icon-list) and set the [`closeIcon`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstripcomponent#closeicon) property of the TabStrip component.

```html
<kendo-tabstrip closeIcon="delete">...</kendo-tabstrip>
```

To display an individual `font` icon for each tab, set the tab [`closeIcon`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstriptabcomponent#closeicon) property of the [`TabStripTab`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstriptabcomponent) component.

```html
<kendo-tabstrip>
    <kendo-tabstrip-tab closeIcon="delete">...</kendo-tabstrip-tab>
    ...
</kendo-tabstrip>
```

The following example demonstrates how to set a font icon inside the tabs close button.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/layout/tabstrip/closable/font-icon/source.txt)

### Using SVG Icons

To display an SVG icon inside the close button of the TabStrip tab:

1. Use the [`ICON_SETTINGS`](https://www.telerik.com/kendo-angular-ui/components/icons/api/icon_settings) token of the Icons package and set the icon type to `svg`. For more information, go to the topic about [icon settings](https://www.telerik.com/kendo-angular-ui/components/icons/icon-settings).

2. Set the [`closeSVGIcon`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstripcomponent#closesvgicon) property of the TabStrip to the necessary [`SVGIcon`](https://www.telerik.com/kendo-angular-ui/components/icons/api/svgicon). For details, go to the [list of SVG icons supported by Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/components/icons/svgicon/svgicon-list).

   ```html
   <kendo-tabstrip [closeSVGIcon]="svgClose">...</kendo-tabstrip>
   ```

   ```ts
   import { cancelIcon, SVGIcon } from '@progress/kendo-svg-icons';
   public svgClose: SVGIcon = cancelIcon;
   ```

3. (Optional) To display an individual SVG icon for each tab, set the [`closeSVGIcon`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstriptabcomponent#closesvgicon) property of the [`TabStripTab`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstriptabcomponent) component.

   ```html
   <kendo-tabstrip>
       <kendo-tabstrip-tab [closeSVGIcon]="svgClose"></kendo-tabstrip-tab>
       ...
   </kendo-tabstrip>
   ```

The following example demonstrates how to set an SVG icon inside the close button of the tabs.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/layout/tabstrip/closable/svg-icon/source.txt)

### Using the Icon Class

To display an icon inside the close button of the tabs, you can also set the [`closeIconClass`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstripcomponent#closeiconclass) property to CSS classes. This approach is especially useful when you want to consume third-party icon libraries like [FontAwesome](https://fontawesome.com/).

```html
<kendo-tabstrip closeIconClass="fa fa-window-close"></kendo-tabstrip>
```

To display an individual icon for each tab, set the tab [`closeIconClass`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstriptabcomponent#closeiconclass) property of the [`TabStripTab`](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstriptabcomponent) component.

```html
<kendo-tabstrip>
    <kendo-tabstrip-tab closeIconClass="fa fa-window-close">...</kendo-tabstrip-tab>
    ...
</kendo-tabstrip>
```

The following example demonstrates how to display FontAwesome icons inside the tabs close button.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/layout/tabstrip/closable/icon-class/source.txt)

## Suggested Links

* [API Reference of the TabStrip](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstripcomponent)
* [API Reference of the TabStripTab](https://www.telerik.com/kendo-angular-ui/components/layout/api/tabstripcomponent)
