Floating Labels

Floating labels are part of the Material Design Guidelines and are fully supported by the KendoVue Inputs components.

Basic Usage

To enable the floating label functionality, pass the label property to the Inputs component.

The following example demonstrates how to implement floating labels in the Input and NumericTextBox components and style them with the KendoVue Material theme.

<div id="vueapp" class="vue-app">
    <div class="row">
        <div class="m-3">
            <p>NumericTextBox</p>
            <numerictextbox 
                :label="'Expected Salary'" 
                :format="'c'" 
            >
            </numerictextbox>
        </div>
        <div class="m-3">
            <p>Input</p>
            <k-input :label="'First name'"></k-input>
        </div>
    </div>
</div>
import { NumericTextBox, Input } from '@progress/kendo-vue-inputs';
Vue.component('k-input', Input);
Vue.component('numerictextbox', NumericTextBox);

new Vue({
    el: '#vueapp'
});

In this article