# SplitButton Icon Options

You can enhance the textual content of the SplitButton by displaying SVG icons, font icons, or images.

The SplitButton supports the following icon options:

* [`svgIcon`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#svgicon)—Displays an SVG icon. For available icons, refer to the [list of SVG icons](https://www.telerik.com/kendo-react-ui/components/common/svgicon#svg-icons-list).
* [`icon`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#icon)—Displays a font icon from the Kendo UI theme. For available icons, refer to the [list of font icons](https://www.telerik.com/design-system/docs/foundation/iconography/icon-list/).
* [`iconClass`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#iconclass)—Displays an icon from a CSS class, such as a [Font Awesome](https://fontawesome.com/) icon.
* [`imageUrl`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#imageurl)—Displays an image from a URL.
* [`arrowButtonSvgIcon`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#arrowbuttonsvgicon) and [`arrowButtonIcon`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#arrowbuttonicon)—Replaces the default chevron-down icon of the arrow button with an SVG or font icon.
* [`endSvgIcon`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#endsvgicon) and [`endIcon`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#endicon)—Displays an SVG or font icon after the label.
* [`prefix`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#prefix) and [`suffix`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#suffix)—Displays custom React content before or after the label.

The following example demonstrates a SplitButton with a font icon, an SVG icon, a Font Awesome icon, and an image.

[Demo Source](https://demos.telerik.com/kendo-react-ui/buttons/splitbutton/icons/func/source.txt)

## SVG Icons

To display an SVG icon, set the [`svgIcon`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#svgicon) property property of the SplitButton to the necessary [`SVGIcon`](https://www.telerik.com/kendo-react-ui/components/common/api/svgicon).

```tsx
import { gearIcon } from '@progress/kendo-svg-icons';

<SplitButton svgIcon={gearIcon} items={items} text="Settings" />;
```

## Font Icons

To display a Font icon inside the SplitButton:

1. [Load the font icons in your project](https://www.telerik.com/design-system/docs/foundation/iconography/font-icons/#usage) so that the icon renders as expected.
2. Depending on the font icons library, you can set the:
   * [`icon`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#icon) property to a font icon in the Kendo UI theme.
     ```tsx
     <SplitButton icon="gear" items={items} text="Settings" />
     ```
   * [`iconClass`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#iconclass) property to a third-party font icon library (such as [FontAwesome](https://fontawesome.com/)).
     ```tsx
     <SplitButton iconClass="fa fa-cog" items={items} text="Settings" />
     ```

## Image URL

To display an image from a URL, set the [`imageUrl`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#imageurl) property of the SplitButton.

```tsx
<SplitButton imageUrl="https://example.com/icons/settings.png" items={items} text="Settings" />;
```

## Arrow Button Icon

By default, the arrow button of the SplitButton displays a chevron-down icon. To replace it with a different SVG icon, set the [`arrowButtonSvgIcon`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#arrowbuttonsvgicon) property. To replace it with a font icon, set the [`arrowButtonIcon`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#arrowbuttonicon) property.

The following example demonstrates how to replace the default chevron-down arrow icon with a custom SVG icon by setting the `arrowButtonSvgIcon` property.

[Demo Source](https://demos.telerik.com/kendo-react-ui/buttons/splitbutton/custom-arrow-icon/func/source.txt)

## End Icon

Set [`endIcon`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#endicon) to a font icon name or [`endSvgIcon`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#endsvgicon) to an SVG icon definition to render an icon after the primary action text. These properties do not change the separate arrow button. To render font icons, [set the icon type to `font`](https://www.telerik.com/kendo-react-ui/components/styling/migrating-font-svg#continue-using-font-icons).

You can combine trailing icons with [`icon`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#icon) or [`svgIcon`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#svgicon).

The following example demonstrates how to set an SVG icon and a font icon after the text of the primary action, and how to combine an end icon with a leading icon.

[Demo Source](https://demos.telerik.com/kendo-react-ui/buttons/splitbutton/end-icon/source.txt)

## Prefix and Suffix Content

Use [`prefix`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#prefix) and [`suffix`](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops#suffix) to pass React content before and after the normal SplitButton content. The prefix appears before the leading icon, and the suffix appears after any trailing icon. Custom elements must use phrasing content and must not contain interactive content.

```tsx
import { SvgIcon } from '@progress/kendo-react-common';
import { saveIcon } from '@progress/kendo-svg-icons';

<SplitButton prefix={<SvgIcon icon={saveIcon} />} items={items} text="Save" />;
```

The following example demonstrates how to set the `prefix` and `suffix` props of the SplitButton.

[Demo Source](https://demos.telerik.com/kendo-react-ui/buttons/splitbutton/content/source.txt)

## Suggested Links

* [API Reference of the SplitButton](https://www.telerik.com/kendo-react-ui/components/buttons/api/splitbuttonprops)
* [Content Setup](https://www.telerik.com/kendo-react-ui/components/buttons/splitbutton/content)
* [Icon Component](https://www.telerik.com/kendo-react-ui/components/common/icon)
