# Appearance

In this article, you will find information about the styling options of the Telerik UI for ASP.NET Core SmartPasteButton.

For a complete example, refer to the [Appearance Demo of the SmartPasteButton](https://demos.telerik.com/aspnet-core/smartpastebutton/appearance).

## Options

The SmartPasteButton component provides the following options for styling:

* [`Size()`](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/appearance#size)—Configures the overall size of the component.
* [`ThemeColor()`](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/appearance#themecolor)—Sets what color will be applied to the component.
* [`FillMode()`](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/appearance#fillmode)—Defines how the color is applied.
* [`Rounded()`](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/appearance#rounded)—Determines the border radius of the component.
* [`Icon()`](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/appearance#icon)—Specifies the icon displayed on the button in its default state.
* [`CancelIcon()`](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/appearance#cancelicon)—Specifies the icon displayed when the button is in listening/processing state.

### Size

To control the size of the SmartPasteButton, configure the `Size()` method with any of the following values:

* `Small`
* `Medium`
* `Large`

To apply the `none` size (as shown in the demo), use the client-side `setOptions()` configuration.

```Razor HtmlHelper
@(Html.Kendo().SmartPasteButton()
    .Name("smartPasteButton")
    .Service("https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste")
    .Text("Smart Paste")
    .Size(ComponentSize.Medium)
)
```

```Razor TagHelper
@addTagHelper *, Kendo.Mvc

<kendo-smartpastebutton name="smartPasteButton"
                        text="Smart Paste"
                        size="ComponentSize.Medium">
    <service url="https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste" />
</kendo-smartpastebutton>
```

### FillMode

The `FillMode()` method specifies how the color is applied to the component.

```Razor HtmlHelper
@(Html.Kendo().SmartPasteButton()
    .Name("smartPasteButton")
    .Service("https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste")
    .Text("Smart Paste")
    .FillMode(FillMode.Solid)
)
```

```Razor TagHelper
@addTagHelper *, Kendo.Mvc

<kendo-smartpastebutton name="smartPasteButton"
                        text="Smart Paste"
                        fill-mode="FillMode.Solid">
    <service url="https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste" />
</kendo-smartpastebutton>
```

The following options are available for the `FillMode` configuration:

* `Solid`
* `Flat`
* `Outline`

To apply the `link`, `clear`, or `none` fill modes (as shown in the demo), use the client-side `setOptions()` configuration.

### ThemeColor

The `ThemeColor` configuration provides a variety of colors that can be applied to the SmartPasteButton. The available options are:

* `Base`
* `Primary`
* `Secondary`
* `Tertiary`
* `Info`
* `Success`
* `Warning`
* `Error`
* `Inverse`

```Razor HtmlHelper
@(Html.Kendo().SmartPasteButton()
    .Name("smartPasteButton")
    .Service("https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste")
    .Text("Smart Paste")
    .ThemeColor(ThemeColor.Base)
)
```

```Razor TagHelper
@addTagHelper *, Kendo.Mvc

<kendo-smartpastebutton name="smartPasteButton"
                        text="Smart Paste"
                        theme-color="ThemeColor.Base">
    <service url="https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste" />
</kendo-smartpastebutton>
```

### Rounded

The border radius of the SmartPasteButton can be customized through the `Rounded()` method.

```Razor HtmlHelper
@(Html.Kendo().SmartPasteButton()
    .Name("smartPasteButton")
    .Service("https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste")
    .Text("Smart Paste")
    .Rounded(Rounded.Medium)
)
```

```Razor TagHelper
@addTagHelper *, Kendo.Mvc

<kendo-smartpastebutton name="smartPasteButton"
                        text="Smart Paste"
                        rounded="Rounded.Medium">
    <service url="https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste" />
</kendo-smartpastebutton>
```

The following values are available for the `Rounded` option:

* `Small`
* `Medium`
* `Large`
* `Full`
* `None`

> The `None` value is deprecated. Use custom CSS instead.

### Icon

The SmartPasteButton supports icon customization through the `Icon()` method. The icon value is the name of a Kendo UI font icon (for example, `paste-sparkle`, `copy`, or `microphone`).

```Razor HtmlHelper
@(Html.Kendo().SmartPasteButton()
    .Name("smartPasteButton")
    .Service("https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste")
    .Text("Smart Paste")
    .Icon("paste-sparkle")
)
```

```Razor TagHelper
@addTagHelper *, Kendo.Mvc

<kendo-smartpastebutton name="smartPasteButton"
                        text="Smart Paste"
                        icon="paste-sparkle">
    <service url="https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste" />
</kendo-smartpastebutton>
```

### CancelIcon

The `CancelIcon()` method sets the icon displayed while the SmartPasteButton is in listening/processing state.

```Razor HtmlHelper
@(Html.Kendo().SmartPasteButton()
    .Name("smartPasteButton")
    .Service("https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste")
    .Text("Smart Paste")
    .CancelIcon("cancel")
)
```

```Razor TagHelper
@addTagHelper *, Kendo.Mvc

<kendo-smartpastebutton name="smartPasteButton"
                        text="Smart Paste"
                        cancel-icon="cancel">
    <service url="https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste" />
</kendo-smartpastebutton>
```

## Updating the Appearance on the Client

In the demo, the SmartPasteButton is updated through `setOptions()` on the client. The client-side configuration uses the JavaScript option names (`size`, `themeColor`, `rounded`, `fillMode`, `icon`).

```Razor HtmlHelper
@(Html.Kendo().SmartPasteButton()
    .Name("smartPasteButton")
    .Service("https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste")
    .Text("Smart Paste")
)

<script>
    function onChange(e) {
        var size = $("#size").data("kendoDropDownList").value();
        var themeColor = $("#themeColor").data("kendoDropDownList").value();
        var rounded = $("#rounded").data("kendoDropDownList").value();
        var fillMode = $("#fillMode").data("kendoDropDownList").value();
        var icon = $("#icon").data("kendoDropDownList").value();

        var options = {
            size: size,
            themeColor: themeColor,
            rounded: rounded,
            fillMode: fillMode,
            icon: icon
        };

        var smartPasteButton = $("#smartPasteButton").data("kendoSmartPasteButton");
        smartPasteButton.setOptions(options);
    }
</script>
```

```Razor TagHelper
@addTagHelper *, Kendo.Mvc

<kendo-smartpastebutton name="smartPasteButton"
                        text="Smart Paste">
    <service url="https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste" />
</kendo-smartpastebutton>

<script>
    function onChange(e) {
        var size = $("#size").data("kendoDropDownList").value();
        var themeColor = $("#themeColor").data("kendoDropDownList").value();
        var rounded = $("#rounded").data("kendoDropDownList").value();
        var fillMode = $("#fillMode").data("kendoDropDownList").value();
        var icon = $("#icon").data("kendoDropDownList").value();

        var options = {
            size: size,
            themeColor: themeColor,
            rounded: rounded,
            fillMode: fillMode,
            icon: icon
        };

        var smartPasteButton = $("#smartPasteButton").data("kendoSmartPasteButton");
        smartPasteButton.setOptions(options);
    }
</script>
```

## See Also

* [SmartPasteButton Appearance (Demo)](https://demos.telerik.com/aspnet-core/smartpastebutton/appearance)

* [SmartPasteButton Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/overview)

* [SmartPasteButton Events](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/navigation/smartpastebutton/events)

* [Server-Side API of the SmartPasteButton ](https://www.telerik.com/aspnet-core-ui/documentation/api/smartpastebutton)

* [Server-Side API of the SmartPasteButton TagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/taghelpers/smartpastebutton)

* [Knowledge Base Section](https://www.telerik.com/aspnet-core-ui/documentation/knowledge-base)
