TextBox

The TextBox is a UI element that allows users to enter short text into an application.

Sass Variables

The Telerik and Kendo UI TextBox enables you to configure and customize its appearance through the Sass variables of the Input components.

All Input components share common Sass variables. Customizing the Sass variables in the table below will affect all Input components, not only the TextBox.

VariableDefault ValueComputed ValueValue
kendo-input-default-width100%100%Default: 100%Computed: 100%
Description: The default width of the Input components.
kendo-input-border-width1px1pxDefault: 1pxComputed: 1px
Description: The border width of the Input components.
kendo-input-border-radiusnullnullDefault: nullComputed: null
Description: The border radius of the Input components.
kendo-input-padding-xk-map-get( $kendo-spacing, 2 )8pxDefault: k-map-get( $kendo-spacing, 2 )Computed: 8px
Description: The horizontal padding of the Input components.
kendo-input-sm-padding-xk-map-get( $kendo-spacing, 2 )8pxDefault: k-map-get( $kendo-spacing, 2 )Computed: 8px
Description: The horizontal padding of the small Input components.
kendo-input-md-padding-x$kendo-input-padding-x8pxDefault: $kendo-input-padding-xComputed: 8px
Description: The horizontal padding of the medium Input components.
kendo-input-lg-padding-xk-map-get( $kendo-spacing, 2 )8pxDefault: k-map-get( $kendo-spacing, 2 )Computed: 8px
Description: The horizontal padding of the large Input components.
kendo-input-padding-yk-map-get( $kendo-spacing, 1 )4pxDefault: k-map-get( $kendo-spacing, 1 )Computed: 4px
Description: The vertical padding of the Input components.
kendo-input-sm-padding-yk-map-get( $kendo-spacing, 0.5 )2pxDefault: k-map-get( $kendo-spacing, 0.5 )Computed: 2px
Description: The vertical padding of the small Input components.
kendo-input-md-padding-y$kendo-input-padding-y4pxDefault: $kendo-input-padding-yComputed: 4px
Description: The vertical padding of the medium Input components.
kendo-input-lg-padding-yk-map-get( $kendo-spacing, 2 )8pxDefault: k-map-get( $kendo-spacing, 2 )Computed: 8px
Description: The vertical padding of the large Input components.
kendo-input-font-family$kendo-font-familyinheritDefault: $kendo-font-familyComputed: inherit
Description: The font family of the Input components.
kendo-input-font-size$kendo-font-size-md14pxDefault: $kendo-font-size-mdComputed: 14px
Description: The font size of the Input components.
kendo-input-sm-font-size$kendo-font-size-md14pxDefault: $kendo-font-size-mdComputed: 14px
Description: The font size of the small Input components.
kendo-input-md-font-size$kendo-input-font-size14pxDefault: $kendo-input-font-sizeComputed: 14px
Description: The font size of the medium Input components.
kendo-input-lg-font-size$kendo-font-size-lg16pxDefault: $kendo-font-size-lgComputed: 16px
Description: The font size of the large Input components.
kendo-input-line-height$kendo-line-height-md1.4285714286Default: $kendo-line-height-mdComputed: 1.4285714286
Description: The line height of the Input components.
kendo-input-sm-line-height$kendo-line-height-md1.4285714286Default: $kendo-line-height-mdComputed: 1.4285714286
Description: The line height of the small Input components.
kendo-input-md-line-height$kendo-input-line-height1.4285714286Default: $kendo-input-line-heightComputed: 1.4285714286
Description: The line height of the medium Input components.
kendo-input-lg-line-height$kendo-line-height-lg1.5Default: $kendo-line-height-lgComputed: 1.5
Description: The line height of the large Input components.
kendo-input-sizes( sm: ( padding-x: $kendo-input-sm-padding-x, padding-y: $kendo-input-sm-padding-y, font-size: $kendo-input-sm-font-size, line-height: $kendo-input-sm-line-height, button-padding-x: $kendo-input-sm-padding-y, button-padding-y: $kendo-input-sm-padding-y ), md: ( padding-x: $kendo-input-md-padding-x, padding-y: $kendo-input-md-padding-y, font-size: $kendo-input-md-font-size, line-height: $kendo-input-md-line-height, button-padding-x: $kendo-input-md-padding-y, button-padding-y: $kendo-input-md-padding-y ), lg: ( padding-x: $kendo-input-lg-padding-x, padding-y: $kendo-input-lg-padding-y, font-size: $kendo-input-lg-font-size, line-height: $kendo-input-lg-line-height, button-padding-x: $kendo-input-lg-padding-y, button-padding-y: $kendo-input-lg-padding-y ) )(sm: (padding-x: 8px, padding-y: 2px, font-size: 14px, line-height: 1.4285714286, button-padding-x: 2px, button-padding-y: 2px), md: (padding-x: 8px, padding-y: 4px, font-size: 14px, line-height: 1.4285714286, button-padding-x: 4px, button-padding-y: 4px), lg: (padding-x: 8px, padding-y: 8px, font-size: 16px, line-height: 1.5, button-padding-x: 8px, button-padding-y: 8px))Default: ( sm: ( padding-x: $kendo-input-sm-padding-x, padding-y: $kendo-input-sm-padding-y, font-size: $kendo-input-sm-font-size, line-height: $kendo-input-sm-line-height, button-padding-x: $kendo-input-sm-padding-y, button-padding-y: $kendo-input-sm-padding-y ), md: ( padding-x: $kendo-input-md-padding-x, padding-y: $kendo-input-md-padding-y, font-size: $kendo-input-md-font-size, line-height: $kendo-input-md-line-height, button-padding-x: $kendo-input-md-padding-y, button-padding-y: $kendo-input-md-padding-y ), lg: ( padding-x: $kendo-input-lg-padding-x, padding-y: $kendo-input-lg-padding-y, font-size: $kendo-input-lg-font-size, line-height: $kendo-input-lg-line-height, button-padding-x: $kendo-input-lg-padding-y, button-padding-y: $kendo-input-lg-padding-y ) )Computed: (sm: (padding-x: 8px, padding-y: 2px, font-size: 14px, line-height: 1.4285714286, button-padding-x: 2px, button-padding-y: 2px), md: (padding-x: 8px, padding-y: 4px, font-size: 14px, line-height: 1.4285714286, button-padding-x: 4px, button-padding-y: 4px), lg: (padding-x: 8px, padding-y: 8px, font-size: 16px, line-height: 1.5, button-padding-x: 8px, button-padding-y: 8px))
Description: The sizes map for the Input components.
kendo-input-bg$kendo-component-bg #ffffffDefault: $kendo-component-bgComputed: #ffffff
Description: The background color of the Input components.
kendo-input-text$kendo-component-text #424242Default: $kendo-component-textComputed: #424242
Description: The text color of the Input components.
kendo-input-border$kendo-component-border rgba(0, 0, 0, 0.08)Default: $kendo-component-borderComputed: rgba(0, 0, 0, 0.08)
Description: The border color of the Input components.
kendo-input-shadownullnullDefault: nullComputed: null
Description: The shadow of the Input components.
kendo-input-hover-bgnullnullDefault: nullComputed: null
Description: The background color of the hovered Input components.
kendo-input-hover-textnullnullDefault: nullComputed: null
Description: The text color of the hovered Input components.
kendo-input-hover-borderif($kendo-enable-color-system, k-color( border-alt ), rgba( $kendo-input-border, .16 )) rgba(0, 0, 0, 0.16)Default: if($kendo-enable-color-system, k-color( border-alt ), rgba( $kendo-input-border, .16 ))Computed: rgba(0, 0, 0, 0.16)
Description: The border color of the hovered Input components.
kendo-input-hover-shadownullnullDefault: nullComputed: null
Description: The shadow of the hovered Input components.
kendo-input-focus-bgnullnullDefault: nullComputed: null
Description: The background color of the focused Input components.
kendo-input-focus-textnullnullDefault: nullComputed: null
Description: The text color of the focused Input components.
kendo-input-focus-border$kendo-input-hover-border rgba(0, 0, 0, 0.16)Default: $kendo-input-hover-borderComputed: rgba(0, 0, 0, 0.16)
Description: The border color of the focused Input components.
kendo-input-focus-shadow0 0 0 2px if($kendo-enable-color-system, rgba( k-color( on-app-surface, true ), .08 ), rgba( $kendo-input-focus-border, .08 ))0 0 0 2px rgba(0, 0, 0, 0.08)Default: 0 0 0 2px if($kendo-enable-color-system, rgba( k-color( on-app-surface, true ), .08 ), rgba( $kendo-input-focus-border, .08 ))Computed: 0 0 0 2px rgba(0, 0, 0, 0.08)
Description: The shadow of the focused Input components.
kendo-input-selected-bgnullnullDefault: nullComputed: null
Description: The background color of the selected Input components.
kendo-input-selected-textnullnullDefault: nullComputed: null
Description: The text color of the selected Input components.
kendo-input-disabled-bgnullnullDefault: nullComputed: null
Description: The background color of the disabled Input components.
kendo-input-disabled-textnullnullDefault: nullComputed: null
Description: The text color of the disabled Input components.
kendo-input-disabled-bordernullnullDefault: nullComputed: null
Description: The border color of the disabled Input components.
kendo-input-disabled-gradientnullnullDefault: nullComputed: null
Description: The gradient of the disabled Input components.
kendo-input-disabled-shadownullnullDefault: nullComputed: null
Description: The shadow of the disabled Input components.
kendo-input-outline-bgnullnullDefault: nullComputed: null
Description: The background color of the outline Input components.
kendo-input-outline-text$kendo-input-text #424242Default: $kendo-input-textComputed: #424242
Description: The text color of the outline Input components.
kendo-input-outline-borderif($kendo-enable-color-system, rgba( k-color( on-base, true ), .5 ), rgba( $kendo-button-text, .5)) rgba(66, 66, 66, 0.5)Default: if($kendo-enable-color-system, rgba( k-color( on-base, true ), .5 ), rgba( $kendo-button-text, .5))Computed: rgba(66, 66, 66, 0.5)
Description: The border color of the outline Input components.
kendo-input-outline-hover-bgnullnullDefault: nullComputed: null
Description: The background color of the outline hovered Input components.
kendo-input-outline-hover-textnullnullDefault: nullComputed: null
Description: The text color of the outline hovered Input components.
kendo-input-outline-hover-borderif($kendo-enable-color-system, rgba( k-color( on-base, true ), .8 ), rgba( $kendo-button-text, .8)) rgba(66, 66, 66, 0.8)Default: if($kendo-enable-color-system, rgba( k-color( on-base, true ), .8 ), rgba( $kendo-button-text, .8))Computed: rgba(66, 66, 66, 0.8)
Description: The border color of the outline hovered Input components.
kendo-input-outline-focus-bgnullnullDefault: nullComputed: null
Description: The background color of the outline focused Input components.
kendo-input-outline-focus-textnullnullDefault: nullComputed: null
Description: The text color of the outline focused Input components.
kendo-input-outline-focus-bordernullnullDefault: nullComputed: null
Description: The border color of the outline focused Input components.
kendo-input-outline-focus-shadow$kendo-input-focus-shadow0 0 0 2px rgba(0, 0, 0, 0.08)Default: $kendo-input-focus-shadowComputed: 0 0 0 2px rgba(0, 0, 0, 0.08)
Description: The shadow of the outline focused Input components.
kendo-input-flat-bgnullnullDefault: nullComputed: null
Description: The background color of the flat Input components.
kendo-input-flat-text$kendo-input-text #424242Default: $kendo-input-textComputed: #424242
Description: The text color of the flat Input components.
kendo-input-flat-border$kendo-input-border rgba(0, 0, 0, 0.08)Default: $kendo-input-borderComputed: rgba(0, 0, 0, 0.08)
Description: The border color of the flat Input components.
kendo-input-flat-hover-bgnullnullDefault: nullComputed: null
Description: The background color of the flat hovered Input components.
kendo-input-flat-hover-textnullnullDefault: nullComputed: null
Description: The text color of the flat hovered Input components.
kendo-input-flat-hover-border$kendo-input-hover-border rgba(0, 0, 0, 0.16)Default: $kendo-input-hover-borderComputed: rgba(0, 0, 0, 0.16)
Description: The border color of the flat hovered Input components.
kendo-input-flat-focus-bgnullnullDefault: nullComputed: null
Description: The background color of the flat focused Input components.
kendo-input-flat-focus-textnullnullDefault: nullComputed: null
Description: The text color of the flat focused Input components.
kendo-input-flat-focus-bordernullnullDefault: nullComputed: null
Description: The border color of the flat focused Input components.
kendo-input-flat-focus-shadow$kendo-input-focus-shadow0 0 0 2px rgba(0, 0, 0, 0.08)Default: $kendo-input-focus-shadowComputed: 0 0 0 2px rgba(0, 0, 0, 0.08)
Description: The shadow of the flat focused Input components.
kendo-input-placeholder-text$kendo-subtle-text #666666Default: $kendo-subtle-textComputed: #666666
Description: The text color of the Input placeholder.
kendo-input-placeholder-opacity11Default: 1Computed: 1
Description: The opacity of the Input placeholder.
kendo-input-clear-value-textnullnullDefault: nullComputed: null
Description: The color of the Input clear value icon.
kendo-input-clear-value-opacity.50.5Default: .5Computed: 0.5
Description: The opacity of the Input clear value icon.
kendo-input-clear-value-hover-textnullnullDefault: nullComputed: null
Description: The color of the hovered Input clear value icon.
kendo-input-clear-value-hover-opacity11Default: 1Computed: 1
Description: The opacity of the hovered Input clear value icon.
kendo-input-values-margin-yk-map-get( $kendo-spacing, 0.5 )2pxDefault: k-map-get( $kendo-spacing, 0.5 )Computed: 2px
Description: The vertical margin of the clear value icon.
kendo-input-values-margin-x$kendo-input-values-margin-y2pxDefault: $kendo-input-values-margin-yComputed: 2px
Description: The horizontal margin of the clear value icon.
kendo-input-button-width$kendo-button-inner-calc-sizecalc(1.4285714286em + 8px)Default: $kendo-button-inner-calc-sizeComputed: calc(1.4285714286em + 8px)
Description: The width of the Input button.
kendo-input-button-border-width1px1pxDefault: 1pxComputed: 1px
Description: The border width of the Input button.
kendo-input-spinner-width$kendo-button-inner-calc-sizecalc(1.4285714286em + 8px)Default: $kendo-button-inner-calc-sizeComputed: calc(1.4285714286em + 8px)
Description: The width of the Input spinner button.
kendo-input-spinner-icon-offsetnullnullDefault: nullComputed: null
Description: The icon offset of the Input spinner button.
kendo-input-separator-text$kendo-input-border rgba(0, 0, 0, 0.08)Default: $kendo-input-borderComputed: rgba(0, 0, 0, 0.08)
Description: The color of the Input separator.
kendo-input-separator-opacity.50.5Default: .5Computed: 0.5
Description: The opacity of the Input separator.
kendo-input-prefix-text$kendo-subtle-text #666666Default: $kendo-subtle-textComputed: #666666
Description: The text color of the Input prefix.
kendo-input-suffix-text$kendo-subtle-text #666666Default: $kendo-subtle-textComputed: #666666
Description: The text color of the Input suffix.
kendo-input-invalid-border$kendo-invalid-border #f31700Default: $kendo-invalid-borderComputed: #f31700
Description: The border color of the invalid Input components.
kendo-input-invalid-shadow$kendo-invalid-shadownullDefault: $kendo-invalid-shadowComputed: null
Description: The shadow of the invalid Input components.
kendo-input-valid-border$kendo-valid-border #37b400Default: $kendo-valid-borderComputed: #37b400
Description: The border color of the valid Input components.
kendo-input-valid-shadow$kendo-valid-shadownullDefault: $kendo-valid-shadowComputed: null
Description: The shadow of the valid Input components.