Form

Forms are structural presentation of related components that facilitate the collection and submission of user data.

Sass Variables

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

As a layout component, the Form can accommodate various other components. To configure and customize the appearance of these inner components, use their respective Sass variables.

VariableDefault ValueComputed ValueValue
kendo-form-spacer$kendo-padding-md-x * 216pxDefault: $kendo-padding-md-x * 2Computed: 16px
Description: The padding of the inline Form.
kendo-form-font-size$kendo-font-size-md14pxDefault: $kendo-font-size-mdComputed: 14px
Description: The font size of the Form.
kendo-form-line-height$kendo-line-height-md1.4285714286Default: $kendo-line-height-mdComputed: 1.4285714286
Description: The line height of the Form.
kendo-form-line-height-emcalc( #{$kendo-form-line-height} * 1em )calc(1.4285714286 * 1em)Default: calc( #{$kendo-form-line-height} * 1em )Computed: calc(1.4285714286 * 1em)
Description: The line height of the Form in em units.
kendo-form-sm-line-height$kendo-line-height-sm1.25Default: $kendo-line-height-smComputed: 1.25
Description: The line height of the small Form.
kendo-form-lg-line-height$kendo-line-height-lg1.5Default: $kendo-line-height-lgComputed: 1.5
Description: The line height of the large Form.
kendo-form-fieldset-margin2em 0 02em 0 0Default: 2em 0 0Computed: 2em 0 0
Description: The margin of the Form fieldset.
kendo-form-fieldset-padding0px0pxDefault: 0pxComputed: 0px
Description: The padding of the Form fieldset.
kendo-form-legend-margin0 0 1em0 0 1emDefault: 0 0 1emComputed: 0 0 1em
Description: The margin of the Form legend.
kendo-form-legend-padding0px0pxDefault: 0pxComputed: 0px
Description: The padding of the Form legend.
kendo-form-legend-border-width0 0 2px0 0 2pxDefault: 0 0 2pxComputed: 0 0 2px
Description: The border width of the Form legend.
kendo-form-legend-border-stylesolidsolidDefault: solidComputed: solid
Description: The border style of the Form legend.
kendo-form-legend-border-color$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 Form legend.
kendo-form-legend-width100%100%Default: 100%Computed: 100%
Description: The width of the Form legend.
kendo-form-legend-font-size14px14pxDefault: 14pxComputed: 14px
Description: The font size of the Form legend.
kendo-form-legend-text-transformuppercaseuppercaseDefault: uppercaseComputed: uppercase
Description: The text capitalization of the Form legend.
kendo-form-label-margin-bottom0px0pxDefault: 0pxComputed: 0px
Description: The bottom margin of the Form label.
kendo-form-button-margin-x8px8pxDefault: 8pxComputed: 8px
Description: The horizontal margin of the Form buttons.
kendo-form-hint-font-size12px12pxDefault: 12pxComputed: 12px
Description: The font size of the Form hint.
kendo-form-hint-font-styleitalicitalicDefault: italicComputed: italic
Description: The font style of the Form hint.
kendo-form-hint-margin-top4px4pxDefault: 4pxComputed: 4px
Description: The top margin of the Form hint.
kendo-form-sm-rows-spacingk-map-get( $kendo-spacing, 2.5 )10pxDefault: k-map-get( $kendo-spacing, 2.5 )Computed: 10px
Description: The row spacing of the small Form.
kendo-form-md-rows-spacingk-map-get( $kendo-spacing, 3.5 )14pxDefault: k-map-get( $kendo-spacing, 3.5 )Computed: 14px
Description: The row spacing of the medium Form.
kendo-form-lg-rows-spacingk-map-get( $kendo-spacing, 4.5 )18pxDefault: k-map-get( $kendo-spacing, 4.5 )Computed: 18px
Description: The row spacing of the large Form.
kendo-form-separator-margin$kendo-form-md-rows-spacing 0 014px 0 0Default: $kendo-form-md-rows-spacing 0 0Computed: 14px 0 0
Description: The margin of the Form separator.
kendo-form-separator-border-color$kendo-form-legend-border-color rgba(0, 0, 0, 0.08)Default: $kendo-form-legend-border-colorComputed: rgba(0, 0, 0, 0.08)
Description: The border color of the Form separator.
kendo-horizontal-form-label-padding-top5px5pxDefault: 5pxComputed: 5px
Description: The top padding of the label in the horizontal Form.
kendo-horizontal-form-label-margin-x10px10pxDefault: 10pxComputed: 10px
Description: The horizontal margin of the label in the horizontal Form.
kendo-horizontal-form-label-width25%25%Default: 25%Computed: 25%
Description: The width of the label in the horizontal Form.
kendo-horizontal-form-label-alignflex-endflex-endDefault: flex-endComputed: flex-end
Description: The horizontal alignment of the label in the horizontal Form.
kendo-horizontal-form-field-wrap-max-widthcalc( ( 100% - #{$kendo-horizontal-form-label-width} ) - #{$kendo-horizontal-form-label-margin-x} )calc(100% - 25% - 10px)Default: calc( ( 100% - #{$kendo-horizontal-form-label-width} ) - #{$kendo-horizontal-form-label-margin-x} )Computed: calc(100% - 25% - 10px)
Description: The maximum width of the field wrap in the horizontal Form.
kendo-inline-form-element-width25%25%Default: 25%Computed: 25%
Description: The width of the inline Form element.
kendo-forms-invalid-color$kendo-color-error #f31700Default: $kendo-color-errorComputed: #f31700
Description: The invalid text color of the Form.
kendo-label-optional-margin-x6px6pxDefault: 6pxComputed: 6px
Description: The horizontal margin of the optional label in the Form.
kendo-label-optional-font-size12px12pxDefault: 12pxComputed: 12px
Description: The font size of the optional label in the Form.
kendo-label-optional-font-styleitalicitalicDefault: italicComputed: italic
Description: The font style of the optional label in the Form.
kendo-fieldset-margin30px30pxDefault: 30pxComputed: 30px
Description: The margin of the Form fieldset.
kendo-fieldset-font-size$kendo-h4-font-size22pxDefault: $kendo-h4-font-sizeComputed: 22px
Description: The font size of the Form fieldset.
kendo-fieldset-bgnullnullDefault: nullComputed: null
Description: The background color of the Form fieldset.
kendo-fieldset-textnullnullDefault: nullComputed: null
Description: The text color of the Form fieldset.
kendo-fieldset-bordernullnullDefault: nullComputed: null
Description: The border color of the Form fieldset.
kendo-fieldset-legend-bgnullnullDefault: nullComputed: null
Description: The background color of the Form legend.
kendo-fieldset-legend-textif($kendo-enable-color-system, k-color( on-app-surface ), k-try-shade( $kendo-body-text, 2 )) #373737Default: if($kendo-enable-color-system, k-color( on-app-surface ), k-try-shade( $kendo-body-text, 2 ))Computed: #373737
Description: The text color of the Form legend.
kendo-fieldset-legend-bordernullnullDefault: nullComputed: null
Description: The border color of the Form legend.
kendo-form-sizes( sm: ( form-rows-spacing: $kendo-form-sm-rows-spacing ), md: ( form-rows-spacing: $kendo-form-md-rows-spacing ), lg: ( form-rows-spacing: $kendo-form-lg-rows-spacing ) )(sm: (form-rows-spacing: 10px), md: (form-rows-spacing: 14px), lg: (form-rows-spacing: 18px))Default: ( sm: ( form-rows-spacing: $kendo-form-sm-rows-spacing ), md: ( form-rows-spacing: $kendo-form-md-rows-spacing ), lg: ( form-rows-spacing: $kendo-form-lg-rows-spacing ) )Computed: (sm: (form-rows-spacing: 10px), md: (form-rows-spacing: 14px), lg: (form-rows-spacing: 18px))
Description: The sizes map for the Form.