Button

Buttons are UI elements for initializing actions upon user interaction.

Sass Variables

The Telerik and Kendo UI Button enables you to configure and customize its appearance through the available Sass variables.

VariableDefault ValueComputed ValueValue
kendo-button-border-width1px1pxDefault: 1pxComputed: 1px
Description: The width of the border around the Button.
kendo-button-border-radiusnullnullDefault: nullComputed: null
Description: The border radius of the Button.
kendo-button-padding-xk-spacing(2)var(--kendo-spacing-2, 0.5rem)Default: k-spacing(2)Computed: var(--kendo-spacing-2, 0.5rem)
Description: The horizontal padding of the Button.
kendo-button-sm-padding-xk-spacing(2)var(--kendo-spacing-2, 0.5rem)Default: k-spacing(2)Computed: var(--kendo-spacing-2, 0.5rem)
Description: The horizontal padding of the small Button.
kendo-button-md-padding-x$kendo-button-padding-xvar(--kendo-spacing-2, 0.5rem)Default: $kendo-button-padding-xComputed: var(--kendo-spacing-2, 0.5rem)
Description: The horizontal padding of the medium Button.
kendo-button-lg-padding-xk-spacing(2)var(--kendo-spacing-2, 0.5rem)Default: k-spacing(2)Computed: var(--kendo-spacing-2, 0.5rem)
Description: The horizontal padding of the large Button.
kendo-button-padding-yk-spacing(1)var(--kendo-spacing-1, 0.25rem)Default: k-spacing(1)Computed: var(--kendo-spacing-1, 0.25rem)
Description: The vertical padding of the Button.
kendo-button-sm-padding-yk-spacing(0.5)var(--kendo-spacing-0\.5, 0.125rem)Default: k-spacing(0.5)Computed: var(--kendo-spacing-0\.5, 0.125rem)
Description: The vertical padding of the small Button.
kendo-button-md-padding-y$kendo-button-padding-yvar(--kendo-spacing-1, 0.25rem)Default: $kendo-button-padding-yComputed: var(--kendo-spacing-1, 0.25rem)
Description: The vertical padding of the medium Button.
kendo-button-lg-padding-yk-spacing(2)var(--kendo-spacing-2, 0.5rem)Default: k-spacing(2)Computed: var(--kendo-spacing-2, 0.5rem)
Description: The vertical padding of the large Button.
kendo-button-font-familyvar( --kendo-font-family, inherit )var(--kendo-font-family, inherit)Default: var( --kendo-font-family, inherit )Computed: var(--kendo-font-family, inherit)
Description: The font family of the Button.
kendo-button-font-sizevar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)Default: var( --kendo-font-size, inherit )Computed: var(--kendo-font-size, inherit)
Description: The font size of the Button.
kendo-button-sm-font-sizevar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)Default: var( --kendo-font-size, inherit )Computed: var(--kendo-font-size, inherit)
Description: The font size of the small Button.
kendo-button-md-font-size$kendo-button-font-sizevar(--kendo-font-size, inherit)Default: $kendo-button-font-sizeComputed: var(--kendo-font-size, inherit)
Description: The font size of the medium Button.
kendo-button-lg-font-sizevar( --kendo-font-size-lg, inherit )var(--kendo-font-size-lg, inherit)Default: var( --kendo-font-size-lg, inherit )Computed: var(--kendo-font-size-lg, inherit)
Description: The font size of the large Button.
kendo-button-line-heightvar( --kendo-line-height, normal )var(--kendo-line-height, normal)Default: var( --kendo-line-height, normal )Computed: var(--kendo-line-height, normal)
Description: The line height used along with the $kendo-font-size the.
kendo-button-sm-line-heightvar( --kendo-line-height, normal )var(--kendo-line-height, normal)Default: var( --kendo-line-height, normal )Computed: var(--kendo-line-height, normal)
Description: The line height used along with the $kendo-font-size the of the small Button.
kendo-button-md-line-height$kendo-button-line-heightvar(--kendo-line-height, normal)Default: $kendo-button-line-heightComputed: var(--kendo-line-height, normal)
Description: The line height used along with the $kendo-font-size the of the medium Button.
kendo-button-lg-line-heightvar( --kendo-line-height-lg, normal )var(--kendo-line-height-lg, normal)Default: var( --kendo-line-height-lg, normal )Computed: var(--kendo-line-height-lg, normal)
Description: The line height used along with the $kendo-font-size the of the large Button.
kendo-button-calc-sizecalc( calc( #{$kendo-button-line-height} * 1em ) + calc( #{$kendo-button-padding-y} * 2 ) + #{$kendo-button-border-width * 2} )calc(var(--kendo-line-height, normal) * 1em + var(--kendo-spacing-1, 0.25rem) * 2 + 2px)Default: calc( calc( #{$kendo-button-line-height} * 1em ) + calc( #{$kendo-button-padding-y} * 2 ) + #{$kendo-button-border-width * 2} )Computed: calc(var(--kendo-line-height, normal) * 1em + var(--kendo-spacing-1, 0.25rem) * 2 + 2px)
Description: The calculated height of the Button.
kendo-button-inner-calc-sizecalc( calc( #{$kendo-button-line-height} * 1em ) + calc( #{$kendo-button-padding-y} * 2 ) )calc(var(--kendo-line-height, normal) * 1em + var(--kendo-spacing-1, 0.25rem) * 2)Default: calc( calc( #{$kendo-button-line-height} * 1em ) + calc( #{$kendo-button-padding-y} * 2 ) )Computed: calc(var(--kendo-line-height, normal) * 1em + var(--kendo-spacing-1, 0.25rem) * 2)
Description: The calculated inner height of the Button excluding the border width.
kendo-button-sizes( sm: ( padding-x: $kendo-button-sm-padding-x, padding-y: $kendo-button-sm-padding-y, font-size: $kendo-button-sm-font-size, line-height: $kendo-button-sm-line-height ), md: ( padding-x: $kendo-button-md-padding-x, padding-y: $kendo-button-md-padding-y, font-size: $kendo-button-md-font-size, line-height: $kendo-button-md-line-height ), lg: ( padding-x: $kendo-button-lg-padding-x, padding-y: $kendo-button-lg-padding-y, font-size: $kendo-button-lg-font-size, line-height: $kendo-button-lg-line-height ) )(sm: (padding-x: var(--kendo-spacing-2, 0.5rem), padding-y: var(--kendo-spacing-0\.5, 0.125rem), font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal)), md: (padding-x: var(--kendo-spacing-2, 0.5rem), padding-y: var(--kendo-spacing-1, 0.25rem), font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal)), lg: (padding-x: var(--kendo-spacing-2, 0.5rem), padding-y: var(--kendo-spacing-2, 0.5rem), font-size: var(--kendo-font-size-lg, inherit), line-height: var(--kendo-line-height-lg, normal)))Default: ( sm: ( padding-x: $kendo-button-sm-padding-x, padding-y: $kendo-button-sm-padding-y, font-size: $kendo-button-sm-font-size, line-height: $kendo-button-sm-line-height ), md: ( padding-x: $kendo-button-md-padding-x, padding-y: $kendo-button-md-padding-y, font-size: $kendo-button-md-font-size, line-height: $kendo-button-md-line-height ), lg: ( padding-x: $kendo-button-lg-padding-x, padding-y: $kendo-button-lg-padding-y, font-size: $kendo-button-lg-font-size, line-height: $kendo-button-lg-line-height ) )Computed: (sm: (padding-x: var(--kendo-spacing-2, 0.5rem), padding-y: var(--kendo-spacing-0\.5, 0.125rem), font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal)), md: (padding-x: var(--kendo-spacing-2, 0.5rem), padding-y: var(--kendo-spacing-1, 0.25rem), font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal)), lg: (padding-x: var(--kendo-spacing-2, 0.5rem), padding-y: var(--kendo-spacing-2, 0.5rem), font-size: var(--kendo-font-size-lg, inherit), line-height: var(--kendo-line-height-lg, normal)))
Description: The sizes map for the Button.
kendo-button-theme-colorsk-map-merge( $kendo-theme-colors, ( "base": if($kendo-enable-color-system, k-color( base ), #f5f5f5) ) )("primary": var(--kendo-color-primary, #ff6358), "secondary": var(--kendo-color-secondary, #666666), "tertiary": var(--kendo-color-tertiary, #03a9f4), "info": var(--kendo-color-info, #0058e9), "success": var(--kendo-color-success, #37b400), "warning": var(--kendo-color-warning, #ffc000), "error": var(--kendo-color-error, #f31700), "dark": var(--kendo-color-dark, #3d3d3d), "light": var(--kendo-color-light, #ebebeb), "inverse": var(--kendo-color-dark, #3d3d3d), "base": var(--kendo-color-base, #f5f5f5))Default: k-map-merge( $kendo-theme-colors, ( "base": if($kendo-enable-color-system, k-color( base ), #f5f5f5) ) )Computed: ("primary": var(--kendo-color-primary, #ff6358), "secondary": var(--kendo-color-secondary, #666666), "tertiary": var(--kendo-color-tertiary, #03a9f4), "info": var(--kendo-color-info, #0058e9), "success": var(--kendo-color-success, #37b400), "warning": var(--kendo-color-warning, #ffc000), "error": var(--kendo-color-error, #f31700), "dark": var(--kendo-color-dark, #3d3d3d), "light": var(--kendo-color-light, #ebebeb), "inverse": var(--kendo-color-dark, #3d3d3d), "base": var(--kendo-color-base, #f5f5f5))
Description: The theme colors map for the Button.
kendo-button-bgif($kendo-enable-color-system, k-color( base ), #f5f5f5)var(--kendo-color-base, #f5f5f5)Default: if($kendo-enable-color-system, k-color( base ), #f5f5f5)Computed: var(--kendo-color-base, #f5f5f5)
Description: The base background of the Button.
kendo-button-textif($kendo-enable-color-system, k-color( on-base ), #424242)var(--kendo-color-on-base, #3d3d3d)Default: if($kendo-enable-color-system, k-color( on-base ), #424242)Computed: var(--kendo-color-on-base, #3d3d3d)
Description: The base text color of the Button.
kendo-button-borderif($kendo-enable-color-system, k-color( border ), rgba( black, .08 ))var(--kendo-color-border, rgba(0, 0, 0, 0.08))Default: if($kendo-enable-color-system, k-color( border ), rgba( black, .08 ))Computed: var(--kendo-color-border, rgba(0, 0, 0, 0.08))
Description: The base border color of the Button.
kendo-button-gradientif($kendo-enable-color-system, null, (rgba( black, 0 ), rgba( black, .02 )))nullDefault: if($kendo-enable-color-system, null, (rgba( black, 0 ), rgba( black, .02 )))Computed: null
Description: The base background gradient of the Button.
kendo-button-shadownullnullDefault: nullComputed: null
Description: The base shadow of the Button.
kendo-button-hover-bgif($kendo-enable-color-system, k-color( base-hover ), k-try-shade( $kendo-button-bg, .5 ))var(--kendo-color-base-hover, #ebebeb)Default: if($kendo-enable-color-system, k-color( base-hover ), k-try-shade( $kendo-button-bg, .5 ))Computed: var(--kendo-color-base-hover, #ebebeb)
Description: The base background of the hovered Button.
kendo-button-hover-textnullnullDefault: nullComputed: null
Description: The base text color of the hovered Button.
kendo-button-hover-bordernullnullDefault: nullComputed: null
Description: The base border color of the hovered Button.
kendo-button-hover-gradientnullnullDefault: nullComputed: null
Description: The base background gradient of the hovered Button.
kendo-button-hover-shadownullnullDefault: nullComputed: null
Description: The base shadow of the hovered Button.
kendo-button-active-bgif($kendo-enable-color-system, k-color( base-active ), k-try-shade( $kendo-button-bg, 1.5 ))var(--kendo-color-base-active, #d6d6d6)Default: if($kendo-enable-color-system, k-color( base-active ), k-try-shade( $kendo-button-bg, 1.5 ))Computed: var(--kendo-color-base-active, #d6d6d6)
Description: The base background color of the active Button.
kendo-button-active-textnullnullDefault: nullComputed: null
Description: The base text color of the active Button.
kendo-button-active-bordernullnullDefault: nullComputed: null
Description: The base border color of the active Button.
kendo-button-active-gradientnullnullDefault: nullComputed: null
Description: The base background gradient of the active Button.
kendo-button-active-shadownullnullDefault: nullComputed: null
Description: The base shadow of the active Button.
kendo-button-selected-bg$kendo-color-primaryvar(--kendo-color-primary, #ff6358)Default: $kendo-color-primaryComputed: var(--kendo-color-primary, #ff6358)
Description: The base background color of the selected Button.
kendo-button-selected-textif($kendo-enable-color-system, k-color( on-primary ), k-contrast-legacy( $kendo-button-selected-bg ))var(--kendo-color-on-primary, #ffffff)Default: if($kendo-enable-color-system, k-color( on-primary ), k-contrast-legacy( $kendo-button-selected-bg ))Computed: var(--kendo-color-on-primary, #ffffff)
Description: The text color of the selected Button.
kendo-button-selected-border$kendo-button-selected-bgvar(--kendo-color-primary, #ff6358)Default: $kendo-button-selected-bgComputed: var(--kendo-color-primary, #ff6358)
Description: The border color of the selected Button.
kendo-button-selected-gradient$kendo-button-active-gradientnullDefault: $kendo-button-active-gradientComputed: null
Description: The background gradient of the selected Button.
kendo-button-selected-shadow$kendo-button-active-shadownullDefault: $kendo-button-active-shadowComputed: null
Description: The base shadow of the selected Button.
kendo-button-focus-bgnullnullDefault: nullComputed: null
Description: The base background of the focused Button.
kendo-button-focus-textnullnullDefault: nullComputed: null
Description: The base text color of the focused Button.
kendo-button-focus-bordernullnullDefault: nullComputed: null
Description: The base border color of the focused Button.
kendo-button-focus-gradientnullnullDefault: nullComputed: null
Description: The base background gradient of the focused Button.
kendo-button-focus-shadow0 0 0 2px if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 8%, transparent), rgba( $kendo-button-border, .08 ))0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #3d3d3d) 8%, transparent)Default: 0 0 0 2px if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 8%, transparent), rgba( $kendo-button-border, .08 ))Computed: 0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #3d3d3d) 8%, transparent)
Description: The base shadow of the focused Button.
kendo-button-disabled-bgnullnullDefault: nullComputed: null
Description: The base background of the disabled Button.
kendo-button-disabled-textnullnullDefault: nullComputed: null
Description: The base text color of the disabled Button.
kendo-button-disabled-bordernullnullDefault: nullComputed: null
Description: The base border color of the disabled Button.
kendo-button-disabled-gradientnullnullDefault: nullComputed: null
Description: The base background gradient of the disabled Button.
kendo-button-disabled-shadownullnullDefault: nullComputed: null
Description: The base shadow of the disabled Button.
kendo-flat-button-hover-opacity.040.04Default: .04Computed: 0.04
Description: The overlay opacity of the hovered flat Button. Used to create a background for the flat Button.
kendo-flat-button-focus-opacitynullnullDefault: nullComputed: null
Description: The overlay opacity of the focused flat Button. Used to create a background for the flat Button.
kendo-flat-button-active-opacity.160.16Default: .16Computed: 0.16
Description: The overlay opacity of the active flat Button. Used to create background for the flat Button.
kendo-flat-button-selected-opacity.20.2Default: .2Computed: 0.2
Description: The overlay opacity of the selected flat Button. Used to create background for the flat Button.
kendo-flat-button-focus-ring-opacity.120.12Default: .12Computed: 0.12
Description: The opacity of the flat Button focus ring. Used to create a border for the flat Button.
kendo-button-transitioncolor .2s ease-in-outcolor 0.2s ease-in-outDefault: color .2s ease-in-outComputed: color 0.2s ease-in-out
Description: The color transition of the flat Button.