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

Appearance

The FloatingActionButton provides a predefined set of appearance options.

Apart from the default vision of the FloatingActionButton, these alternative styling options enable you to configure each individual aspect of the component's appearance.

The current article provides details about how the component changes when the different configurations of its properties are applied. Here are the sections you can directly access:

Configurator demo

The following example demonstrates configuring different aspects of a FloatingActionButton appearance through a configurator.

Example
View Source
Change Theme:

Size

The size of the FloatingActionButton is controlled through its size property. The values we can pass to the property are as follows:

  • smallApplies half of the default padding, e.g. 8px.
  • medium (Default)Applies the default padding, e.g. 16px.
  • largeApplies one and one half of the default padding, e.g. 24px.
  • null — The null option removes the built-in sizing. Allows for custom padding.

The following example demonstrates the usage of each size option:

Example
View Source
Change Theme:

Shape

The shape of the FloatingActionButton is controlled through its shape property. The values we can pass to the property are as follows:

  • rectangle(Default)Applies no border radius on the FloatingActionButton.
  • squareApplies square shape on the FloatingActionButton.
  • nullPassing null to the size property gives us the option to define a custom CSS class that sets the size of the FloatingActionButton.

The following example demonstrates the usage of each shape option:

Example
View Source
Change Theme:

Roundness

The roundness of the FloatingActionButton is controlled through its rounded property. The values we can pass to the property are as follows:

  • small — Sets the border radius to 1px.
  • medium(Default) — Sets the border radius to 2px.
  • large — Sets the border radius to 4px.
  • full — Sets the border radius to 9999px.
  • null — Passing null to the rounded property gives us the option to define a custom CSS class that defines the border-radius of the FloatingActionButton.

The following example demonstrates the usage of each rounded option:

Example
View Source
Change Theme:

Theme Colors

The theme colors of the FloatingActionButton are controlled through its themeColor property. The values we can pass to the property are as follows:

  • primary (Default)Applies coloring based on the primary theme color.
  • secondaryApplies coloring based on the secondary theme color.
  • tertiaryApplies coloring based on the tertiary theme color.
  • infoApplies coloring based on the info theme color.
  • successApplies coloring based on the success theme color.
  • warningApplies coloring based on the warning theme color.
  • errorApplies coloring based on the error theme color.
  • darkApplies coloring based on the dark theme color.
  • lightApplies coloring based on the light theme color.
  • inverseApplies coloring based on the inverted theme color.
  • nullRemoves the color related styling and allows you to define custom colors.

The following example demonstrates the usage of each themeColor option:

Example
View Source
Change Theme: