# Appearance

In this article, you will find information about the styling options and rendering of the Kendo UI FloatingActionButton.

For a live example, visit the [Appearance Demo of the FloatingActionButton](https://demos.telerik.com/kendo-ui/floatingactionbutton/appearance).

## Options

The Kendo UI FloatingActionButton supports the following styling options:

* [`size`](https://www.telerik.com/kendo-jquery-ui/documentation/controls/floatingactionbutton/appearance#size)—configures the overall size of the component.
* [`fillMode`](https://www.telerik.com/kendo-jquery-ui/documentation/controls/floatingactionbutton/appearance#fillmode)—configures how the color is applied to the component.
* [`themeColor`](https://www.telerik.com/kendo-jquery-ui/documentation/controls/floatingactionbutton/appearance#themecolor)—configures what color will be applied to the component.
* [`rounded`](https://www.telerik.com/kendo-jquery-ui/documentation/controls/floatingactionbutton/appearance#rounded)—configures the border radius of the component.

### Size

The `size` option controls how big or small the rendered FloatingActionButton looks. The structure of the class is `k-fab-{size}`.

The following values are available for the [`size`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/floatingactionbutton/configuration/size) option:

* `sm`—small size
* `md`—medium size
* `lg`—large size
* `none`—unset

The following example demonstrates how to configure the `size` of the component through the component configuration:

```dojo
<button id="fab"></button>
<script>
$("#fab").kendoFloatingActionButton({
    size: "large"
});
</script>
```

The default size value is `medium` and it is applied to the wrapping span element through the `k-fab-md` class.

```html
<button class="k-fab k-fab-sm">
</button>
```

### FillMode

The `fillMode` option controls the way the color is applied to the rendered FloatingActionButton. The structure of the class is `k-fab-{fillMode}`.

You can set the [`fillMode`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/floatingactionbutton/configuration/fillmode) either to `solid` or to *null*.

The following example demonstrates how to configure the `fillMode` of the component through the component configuration:

```dojo
<input id="fab" />
<script>
$("#fab").kendoFloatingActionButton({
    fillMode: null
});
</script>
```

The default fillMode value is `solid` and it is applied to the button element through the `k-fab-solid` class.

```html
<button class="k-fab k-fab-solid" >
</button>
```

### ThemeColor

The `themeColor` option controls the color that will be applied to the rendered FloatingActionButton. As applying `themeColor` is closely related to the `fillMode`, the structure of the class name for the `themeColor` is composite - `k-fab-{fillMode}-{themeColor}`.

The following values are available for the [`themeColor`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/floatingactionbutton/configuration/themecolor) option:

* `base`
* `primary`
* `secondary`
* `tertiary`

The default `themeColor` value is `primary`. A FloatingActionButton with default `fillMode` and `themeColor` will have `k-fab-primary` class applied.

```html

<button class="k-fab k-fab-primary k-fab-solid" >
</button>


<button class="k-fab" >
</button>


<button class="k-fab k-fab-tertiary k-fab-solid" >
</button>
```

### Rounded

The `rounded` option controls how much border radius is applied to the rendered FloatingActionButton. The structure of the class is `k-rounded-{size}`.

The following values are available for the [`rounded`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/floatingactionbutton/configuration/rounded) option:

* `sm`—small border radius
* `md`—medium border radius
* `lg`—large border radius
* `full`—largest border radius
* `none`—unset

The example below demonstrates how to configure the `rounded` of the component through the component configuration:

```dojo
<input id="fab" />
<script>
$("#fab").kendoFloatingActionButton({
    rounded: "large"
});
</script>
```

The default rounded value is `full` and it is applied to the button element through the `k-rounded-full` class.

```html
<button class="k-fab k-rounded-full" >
</button>
```

## Rendering

Starting with version R1 2022, the component has a new rendering. For additional information on the decision behind these changes, visit the [Components Rendering Overview](https://www.telerik.com/kendo-jquery-ui/documentation/styles-and-layout/components-rendering-overview) article.

To review the latest rendering of the component, refer to the HTML specifications in the [Kendo UI Themes Monorepo](https://github.com/telerik/kendo-themes/tree/develop). The `tests` folder of the repository contains the rendering for all flavors of the components, providing a clear reference for how their elements are structured. The rendering information can help you customize a component's appearance and behavior by applying custom CSS or JavaScript to suit specific design or functional requirements.

## Best Practices

The Material Design guidelines dictate that:

* When you configure the FloatingActionButton to display additional related actions (speed dial actions), you should configure only an icon for the button, without a label. Use labels to display additional information for the related actions.

* If the application requires an icon and a label for the Kendo UI FloatingActionButton, consider omitting the additional actions.

```
    <div id="fab"></div>

    <script>
        $(document).ready(function () {
            $("#fab").kendoFloatingActionButton({
                icon:"plus",
                text: "Add To Cart"
            });
        });
    </script>
```

## Icons

The [`icon`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/floatingactionbutton/configuration/icon) configuration option specifies the name of an icon. The selected icon must be available in the Kendo UI theme that is rendered by the FloatingActionButton. For more details on the available Web Font icons see [`the Web Font Icons article`](https://docs.telerik.com/kendo-ui/styles-and-layout/icons-web).

```
    <div id="fab"></div>

    <script>
        $(document).ready(function () {
            $("#fab").kendoFloatingActionButton({
                icon:"plus",
                items:[
                    {icon:"star",label:"Add Rating"},
                    {icon: "pencil", label:"Add Comment"}
                ]
            });
        });
    </script>
```

## See Also

* [Basic Usage Demo of the FloatingActionButton](https://demos.telerik.com/kendo-ui/floatingactionbutton/basic-usage)
* [Appearance Demo of the FloatingActionButton](https://demos.telerik.com/kendo-ui/floatingactionbutton/appearance)
* [JavaScript API Reference of the FloatingActionButton](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/floatingactionbutton)
