New to Kendo UI for Angular? Start a free 30-day trial

Appearance

The FloatingActionButton provides many predefined appearance options such as different shapes, sizes and theme colors.

Theme Color

The FloatingActionButton allows you to specify predefined theme colors. The theme color will be applied as background and border color, while also amending the text color accordingly.

The available themeColor values are:

  • primary (Default)Applies coloring based on the primary theme color.
  • secondaryApplies coloring based on the secondary theme color.
  • tertiary Applies coloring based on the tertiary theme color.
  • inherit Applies inherited coloring value.
  • infoApplies coloring based on the info theme color.
  • success Applies coloring based on the success theme color.
  • warning Applies coloring based on the warning theme color.
  • error Applies coloring based on the error theme color.
  • dark Applies coloring based on the dark theme color.
  • light Applies coloring based on the light theme color.
  • inverse Applies coloring based on the inverse theme color.
Example
View Source
Edit In Stackblitz  
Change Theme:

Shape

The FloatingActionButton allows you to set different shapes.

The available shape values are:

  • pill(Default)Applies border radius equal to half of the height of the FloatingActionButton. If the FloatingActionButton contains only icon, the shape will be circular.
  • circleApplies circle shape on the FloatingActionButton.
  • rectangleApplies no border radius on the FloatingActionButton.
  • roundedApplies default border radius on the FloatingActionButton.
  • squareApplies square shape on the FloatingActionButton.
Example
View Source
Edit In Stackblitz  
Change Theme:

Size

The FloatingActionButton allows you to set different sizes.

The available size values are:

  • small
  • medium (Default)
  • large
Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?