New to Kendo UI for Vue? Start a free 30-day trial
Customizing Input
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-input-default-width | Number | 100% | 100% |
Description
The default width of the Input components. | |||
$kendo-input-border-width | Number | $input-border-width | 1px |
Description
The border width of the Input components. | |||
$kendo-input-border-radius | Null | null | null |
Description
The border radius of the Input components. | |||
$kendo-input-padding-x | Number | $input-padding-x | 0.75rem |
Description
The horizontal padding of the Input components. | |||
$kendo-input-sm-padding-x | Number | $input-padding-x-sm | 0.5rem |
Description
The horizontal padding of the small Input components. | |||
$kendo-input-md-padding-x | Number | $input-padding-x | 0.75rem |
Description
The horizontal padding of the medium Input components. | |||
$kendo-input-lg-padding-x | Number | $input-padding-x-lg | 1rem |
Description
The horizontal padding of the large Input components. | |||
$kendo-input-padding-y | Number | $input-padding-y | 0.375rem |
Description
The vertical padding of input components. | |||
$kendo-input-sm-padding-y | Number | $input-padding-y-sm | 0.25rem |
Description
The vertical padding of the small Input components. | |||
$kendo-input-md-padding-y | Number | $input-padding-y | 0.375rem |
Description
The vertical padding of the medium Input components. | |||
$kendo-input-lg-padding-y | Number | $input-padding-y-lg | 0.5rem |
Description
The vertical padding of the large Input components. | |||
$kendo-input-font-family | List | $kendo-font-family | system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" |
Description
The font family of input components. | |||
$kendo-input-font-size | Number | $kendo-font-size-md | 1rem |
Description
The font size of input components. | |||
$kendo-input-sm-font-size | Number | $kendo-font-size-sm | 0.875rem |
Description
The font size of the small Input components. | |||
$kendo-input-md-font-size | Number | $kendo-font-size-md | 1rem |
Description
The font size of the medium Input components. | |||
$kendo-input-lg-font-size | Number | $kendo-font-size-md | 1rem |
Description
The font size of the large Input components. | |||
$kendo-input-line-height | Number | $input-line-height | 1.5 |
Description
The line height of input components. | |||
$kendo-input-sm-line-height | Number | k-math-div( 20, 14 ) | 1.4285714286 |
Description
The line height of the small Input components. | |||
$kendo-input-md-line-height | Number | $kendo-line-height-md | 1.5 |
Description
The line height of the medium Input components. | |||
$kendo-input-lg-line-height | Number | $kendo-line-height-md | 1.5 |
Description
The line height of the large Input components. | |||
$kendo-input-sizes | Map | (
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: 0.5rem, padding-y: 0.25rem, font-size: 0.875rem, line-height: 1.4285714286, button-padding-x: 0.25rem, button-padding-y: 0.25rem), md: (padding-x: 0.75rem, padding-y: 0.375rem, font-size: 1rem, line-height: 1.5, button-padding-x: 0.375rem, button-padding-y: 0.375rem), lg: (padding-x: 1rem, padding-y: 0.5rem, font-size: 1rem, line-height: 1.5, button-padding-x: 0.5rem, button-padding-y: 0.5rem)) |
Description
The sizes map for the Input components. | |||
$kendo-input-bg | Color | $input-bg | #ffffff |
Description
The background color of the Input components. | |||
$kendo-input-text | Color | $input-color | #212529 |
Description
The text color of the Input components. | |||
$kendo-input-border | Color | $input-border-color | #ced4da |
Description
The border color of the Input components. | |||
$kendo-input-shadow | Null | null | null |
Description
The shadow of the Input components. | |||
$kendo-input-hover-bg | Null | null | null |
Description
The background color of the hovered Input components. | |||
$kendo-input-hover-text | Null | null | null |
Description
The text color of the hovered Input components. | |||
$kendo-input-hover-border | Null | null | null |
Description
The border color of the hovered Input components. | |||
$kendo-input-hover-shadow | Null | null | null |
Description
The shadow of the hovered Input components. | |||
$kendo-input-focus-bg | Color | $input-focus-bg | #ffffff |
Description
The background color of the focused Input components. | |||
$kendo-input-focus-text | Color | $input-focus-color | #212529 |
Description
The text color of the focused Input components. | |||
$kendo-input-focus-border | Color | $input-focus-border-color | #86b7fe |
Description
The border color of the focused Input components. | |||
$kendo-input-focus-shadow | List | $input-focus-box-shadow | 0 0 0 0.25rem rgba(13, 110, 253, 0.25) |
Description
The shadow of the focused Input components. | |||
$kendo-input-selected-bg | Null | null | null |
Description
The background color of the selected Input components. | |||
$kendo-input-selected-text | Null | null | null |
Description
The text color of the selected Input components. | |||
$kendo-input-disabled-bg | Null | null | null |
Description
The background color of the disabled Input components. | |||
$kendo-input-disabled-text | Null | null | null |
Description
The text color of the disabled Input components. | |||
$kendo-input-disabled-border | Null | null | null |
Description
The border color of the disabled Input components. | |||
$kendo-input-disabled-gradient | Null | null | null |
Description
The gradient of the disabled Input components. | |||
$kendo-input-disabled-shadow | Null | null | null |
Description
The shadow of the disabled Input components. | |||
$kendo-input-outline-bg | Null | null | null |
Description
The background color of the outline Input components. | |||
$kendo-input-outline-text | Color | $kendo-base-text | #212529 |
Description
The text color of the outline Input components. | |||
$kendo-input-outline-border | Color | if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 50%, transparent), rgba( $kendo-base-text, .5 )) | rgba(33, 37, 41, 0.5) |
Description
The border color of the outline Input components. | |||
$kendo-input-outline-hover-bg | Null | null | null |
Description
The background color of the outline hovered Input components. | |||
$kendo-input-outline-hover-text | Null | null | null |
Description
The text color of the outline hovered Input components. | |||
$kendo-input-outline-hover-border | Null | null | null |
Description
The border color of the outline hovered Input components. | |||
$kendo-input-outline-focus-bg | Null | null | null |
Description
The background color of the outline focused Input components. | |||
$kendo-input-outline-focus-text | Null | null | null |
Description
The text color of the outline focused Input components. | |||
$kendo-input-outline-focus-border | Color | $kendo-input-focus-border | #86b7fe |
Description
The border color of the outline focused Input components. | |||
$kendo-input-outline-focus-shadow | List | $kendo-input-focus-shadow | 0 0 0 0.25rem rgba(13, 110, 253, 0.25) |
Description
The shadow of the outline focused Input components. | |||
$kendo-input-flat-bg | Null | null | null |
Description
The background color of the flat Input components. | |||
$kendo-input-flat-text | Color | $kendo-input-text | #212529 |
Description
The text color of the flat Input components. | |||
$kendo-input-flat-border | Color | $kendo-input-border | #ced4da |
Description
The border color of the flat Input components. | |||
$kendo-input-flat-hover-bg | Null | null | null |
Description
The background color of the flat hovered Input components. | |||
$kendo-input-flat-hover-text | Null | null | null |
Description
The text color of the flat hovered Input components. | |||
$kendo-input-flat-hover-border | Null | $kendo-input-hover-border | null |
Description
The border color of the flat hovered Input components. | |||
$kendo-input-flat-focus-bg | Null | null | null |
Description
The background color of the flat focused Input components. | |||
$kendo-input-flat-focus-text | Null | null | null |
Description
The text color of the flat focused Input components. | |||
$kendo-input-flat-focus-border | Color | $kendo-input-focus-border | #86b7fe |
Description
The border color of the flat focused Input components. | |||
$kendo-input-flat-focus-shadow | List | $kendo-input-focus-shadow | 0 0 0 0.25rem rgba(13, 110, 253, 0.25) |
Description
The shadow of the flat focused Input components. | |||
$kendo-input-placeholder-text | Color | $input-placeholder-color | #6c757d |
Description
The text color of the Input placeholder. | |||
$kendo-input-placeholder-opacity | Number | 1 | 1 |
Description
The opacity of the Input placeholder. | |||
$kendo-input-clear-value-text | Null | null | null |
Description
The color of the Input clear value icon. | |||
$kendo-input-clear-value-opacity | Number | .5 | 0.5 |
Description
The opacity of the Input clear value icon. | |||
$kendo-input-clear-value-hover-text | Null | null | null |
Description
The color of the hovered Input clear value icon. | |||
$kendo-input-clear-value-hover-opacity | Number | 1 | 1 |
Description
The opacity of the hovered Input clear value icon. | |||
$kendo-input-values-margin-y | Number | k-map-get( $kendo-spacing, 0.5 ) | 0.125rem |
Description
The vertical margin of the clear value icon. | |||
$kendo-input-values-margin-x | Number | $kendo-input-values-margin-y | 0.125rem |
Description
The horizontal margin of the clear value icon. | |||
$kendo-input-button-width | Null | null | null |
Description
The width of the Input button. | |||
$kendo-input-button-border-width | Number | 1px | 1px |
Description
The border width of the Input button. | |||
$kendo-input-spinner-width | Null | null | null |
Description
The width of the Input spinner button. | |||
$kendo-input-spinner-icon-offset | Null | null | null |
Description
The icon offset of the Input spinner button. | |||
$kendo-input-separator-text | Color | $kendo-component-border | #dee2e6 |
Description
The color of the Input separator. | |||
$kendo-input-separator-opacity | Number | .5 | 0.5 |
Description
The opacity of the Input separator. | |||
$kendo-input-prefix-text | Color | $kendo-subtle-text | #6c757d |
Description
The text color of the Input prefix. | |||
$kendo-input-suffix-text | Color | $kendo-subtle-text | #6c757d |
Description
The text color of the Input suffix. | |||
$kendo-input-invalid-border | Color | $kendo-invalid-border | #dc3545 |
Description
The border color of the invalid Input components. | |||
$kendo-input-invalid-shadow | List | $kendo-invalid-shadow | 0 0 0 0.25rem rgba(220, 53, 69, 0.25) |
Description
The shadow of the invalid Input components. |