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

Customizing Floating-action-button

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-fab-border-width1px
Description
The width of the border around the FAB.
$kendo-fab-border-radiusvar( --kendo-border-radius-md, #{$kendo-border-radius-md} )
Description
The border radius of the FAB.
$kendo-fab-font-familyvar( --kendo-font-family, inherit )
Description
The font family of the FAB.
$kendo-fab-font-sizevar( --kendo-font-size, inherit )
Description
The font size of the FAB.
$kendo-fab-line-heightvar( --kendo-line-height, normal )
Description
The line height of the FAB.
$kendo-fab-padding-xmap.get( $kendo-spacing, 4 )
Description
The horizontal padding of the FAB.
$kendo-fab-sm-padding-xmath.div( $kendo-fab-padding-x, 2 )
Description
The horizontal padding of the small FAB.
$kendo-fab-md-padding-x$kendo-fab-padding-x
Description
The horizontal padding of the medium FAB.
$kendo-fab-lg-padding-x( $kendo-fab-padding-x * 1.5 )
Description
The horizontal padding of the large FAB.
$kendo-fab-padding-y$kendo-fab-padding-x
Description
The vertical padding of the FAB.
$kendo-fab-sm-padding-ymath.div( $kendo-fab-padding-y, 2 )
Description
The vertical padding of the small FAB.
$kendo-fab-md-padding-y$kendo-fab-padding-y
Description
The vertical padding of the medium FAB.
$kendo-fab-lg-padding-y( $kendo-fab-padding-y * 1.5 )
Description
The vertical padding of the large FAB.
$kendo-fab-focus-offset$kendo-button-focus-offset
Description
The offset of the focused FAB.
$kendo-fab-focus-outline-width$kendo-button-focus-outline-width
Description
The outline width of the focused FAB.
$kendo-fab-focus-outline-style$kendo-button-focus-outline-style
Description
The outline style of the focused FAB.
$kendo-fab-icon-padding-xmap.get( $kendo-spacing, 0.5 )
Description
The horizontal padding of the FAB icon.
$kendo-fab-icon-padding-y$kendo-fab-icon-padding-x
Description
The vertical padding of the FAB icon.
$kendo-fab-icon-spacingmap.get( $kendo-spacing, 0.5 )
Description
The spacing of the FAB icon.
$kendo-fab-items-padding-x0px
Description
The horizontal padding of the FAB items.
$kendo-fab-items-padding-ymap.get( $kendo-spacing, 4 )
Description
The vertical padding of the FAB items.
$kendo-fab-item-text-padding-xmap.get( $kendo-spacing, 1 )
Description
The horizontal padding of the FAB item text.
$kendo-fab-item-text-padding-ymap.get( $kendo-spacing, 1 )
Description
The vertical padding of the FAB item text.
$kendo-fab-item-text-border-width1px
Description
The width of the FAB item text border.
$kendo-fab-item-text-border-stylesolid
Description
The border style of the FAB item text.
$kendo-fab-item-text-border-radiusvar( --kendo-border-radius-md, #{$kendo-border-radius-md} )
Description
The border radius of the FAB item text.
$kendo-fab-item-text-font-sizevar( --kendo-font-size-sm, inherit )
Description
The font size of the FAB item text.
$kendo-fab-item-text-line-heightvar( --kendo-line-height-sm, inherit )
Description
The line height of the FAB item text.
$kendo-fab-item-text-offset-xmap.get( $kendo-spacing, 2 )
Description
The bottom margin of the FAB item text.
$kendo-fab-item-focus-offset$kendo-button-focus-offset
Description
The offset of the focused FAB item.
$kendo-fab-item-focus-outline-width$kendo-button-focus-outline-width
Description
The outline width of the focused FAB item.
$kendo-fab-item-focus-outline-style$kendo-button-focus-outline-style
Description
The outline style of the focused FAB item.
$kendo-fab-item-icon-padding-xmap.get( $kendo-spacing, 2 ) + $kendo-fab-icon-padding-x
Description
The horizontal padding of the FAB item icon.
$kendo-fab-item-icon-padding-y$kendo-fab-item-icon-padding-x
Description
The vertical padding of the FAB item icon.
$kendo-fab-item-icon-border-width1px
Description
The border width of the FAB item icon.
$kendo-fab-item-icon-border-stylesolid
Description
The border style of the FAB item icon.
$kendo-fab-item-icon-border-radius50%
Description
The border radius of the FAB item icon.
$kendo-fab-theme-colors( solid: map.get( $kendo-button-theme-colors, "solid") )
Description
The theme colors map for the FAB.
$kendo-fab-sizes( sm: ( padding-x: $kendo-fab-sm-padding-x, padding-y: $kendo-fab-sm-padding-y ), md: ( padding-x: $kendo-fab-md-padding-x, padding-y: $kendo-fab-md-padding-y ), lg: ( padding-x: $kendo-fab-lg-padding-x, padding-y: $kendo-fab-lg-padding-y ) )
Description
The size map for the FAB.
$kendo-fab-item-offset-ymap.get( $kendo-spacing, 2 )
Description
The bottom margin of the FAB item.
$kendo-fab-item-textif($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-160 ))
Description
The base text color of the FAB item.
$kendo-fab-item-bgvar( --kendo-component-bg, inherit )
Description
The base background color of the FAB item.
$kendo-fab-item-borderif($kendo-enable-color-system, k-color( border ), k-get-theme-color-var( neutral-110 ))
Description
The base border color of the FAB item.
$kendo-fab-item-hover-textvar( --kendo-hover-text, inherit )
Description
The text color of the hovered FAB item.
$kendo-fab-item-hover-bgvar( --kendo-hover-bg, inherit )
Description
The background color of the hovered FAB item.
$kendo-fab-item-hover-borderif($kendo-enable-color-system, k-color( border ), k-get-theme-color-var( neutral-110 ))
Description
The border color of the hovered FAB item.
$kendo-fab-item-focus-textif($kendo-enable-color-system, k-color( on-app-surface ), k-get-theme-color-var( neutral-160 ))
Description
The text color of the focused FAB item.
$kendo-fab-item-focus-bgvar( --kendo-component-bg, inherit )
Description
The background color of the focused FAB item.
$kendo-fab-item-focus-borderif($kendo-enable-color-system, k-color( border ), k-get-theme-color-var( neutral-110 ))
Description
The border color of the focused FAB item.
$kendo-fab-item-active-textvar( --kendo-selected-text, inherit )
Description
The text color of the active FAB item.
$kendo-fab-item-active-bgvar( --kendo-selected-bg, inherit )
Description
The background color of the active FAB item.
$kendo-fab-item-active-borderif($kendo-enable-color-system, k-color( border ), k-get-theme-color-var( neutral-110 ))
Description
The border color of the active FAB item.

In this article

Not finding the help you need?