# FloatingActionButton Customization

The FloatingActionButton provides options for customizing the behavior of its popup and the rendering of its Dial items list.

The component enables you to:

* [Configure popup behavior](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/templates#popup-behavior)
* [Customize Dial item content](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/templates#item-templates)
* [Customize the button content](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/templates#floatingactionbutton-template)

## Popup Behavior

Set [`dialClass`](https://www.telerik.com/kendo-angular-ui/components/buttons/api/floatingactionbuttoncomponent#dialclass) to apply CSS classes to the list that holds the Dial items. Use [`dialItemAnimation`](https://www.telerik.com/kendo-angular-ui/components/buttons/api/floatingactionbuttoncomponent#dialitemanimation) to disable the Dial animation or to configure its duration and gap. For details, see [Speed Dial](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/speed_dial#animation).

The following demo disables the Dial animation and applies a CSS class to the Dial.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/buttons/floatingactionbutton/customization/popup/source.txt)

## FloatingActionButton Template

To customize the content of the FloatingActionButton itself, use the [`kendoFloatingActionButtonTemplate`](https://www.telerik.com/kendo-angular-ui/components/buttons/api/floatingactionbuttontemplatedirective) directive. Apply the directive to an `<ng-template>` tag nested within the `<kendo-floatingactionbutton>` tag. The template replaces the generated icon and text.

The following example demonstrates how to use the FloatingActionButton template.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/buttons/floatingactionbutton/templates/fab_template/source.txt)

## Item Templates

To customize the content of the Dial items, define a template for them. Nest an `<ng-template>` tag with the [`kendoDialItemTemplate`](https://www.telerik.com/kendo-angular-ui/components/buttons/api/dialitemtemplatedirective) directive inside the `<kendo-floatingactionbutton>` tag. The template context is set to the current Dial item.

The following values are available as context variables:

* `let-item="item"` (`any`)—The current dial item. Also available as an implicit context variable.
* `let-index="index"` (`number`)—The current index of the dial item.
* `let-isFocused="isFocused"` (`boolean`)—Indicates whether the current dial item is focused. You need to manually style the currently focused dial item to indicate its active state during keyboard navigation.

The following example demonstrates how to use the Dial item template.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/buttons/floatingactionbutton/templates/item_template/source.txt)

## Suggested Links

* [FloatingActionButton Content Setup](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/content)
* [FloatingActionButton Data Binding](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/dial_items)
* [API Reference of the FloatingActionButton](https://www.telerik.com/kendo-angular-ui/components/buttons/api/floatingactionbuttoncomponent)
