Appearance
The Kendo UI for Vue Native Input provides a predefined set of appearance options.
Apart from the default vision of the Input, these alternative styling options enable you to configure each individual aspect of the component's appearance.
The current article provides details about how the component changes when the different configurations of its properties are applied. Here are the sections you can directly access:
Configurator demo
The following example demonstrates configuring different aspects of a Input appearance through a configurator.
Size
The size of the Input is controlled through its size property. The values we can pass to the property are as follows:
- small— Sets the- paddingto- 2pxand- 8px.
- medium(Default) — Sets the- paddingto- 4pxand- 8px.
- large— Sets the- paddingto- 6pxand- 8px.
- null— Passing- nullto the- sizeproperty gives us the option to define a- custom CSS classthat sets the- paddingof the Input.
The following example demonstrates the usage of each size option:
Roundness
The roundness of the Input is controlled through its rounded property. The values we can pass to the property are as follows:
- small— Sets the- border radiusto- 1px.
- medium(Default) — Sets the- border radiusto- 2px.
- large— Sets the- border radiusto- 4px.
- full— Sets the- border radiusto- 9999px.
- null— Passing- nullto the- roundedproperty gives us the option to define a- custom CSS classthat defines the- border-radiusof the Input.
The following example demonstrates the usage of each rounded option:
Fill Mode
The styling of the Input is controlled through its fillMode property. The values we can pass to the property are as follows:
- solid(Default) — Sets a- backgroundcolor and- solid borders.
- flat— Sets- transparent background and bordersin default state, and- background colorin focused state.
- outline— Sets a- transparent backgroundand- solid borders.
- null— Passing- nullto the- fillModeproperty gives us the option to define a- custom CSS classthat defines the- backgroundand- borderof the Input.
The following example demonstrates the usage of each fillMode option: