Labels Overview
The Kendo UI for Vue Labels package delivers components for adding hints, error messages and labelling form editors.
The Labels components are part of the Kendo UI for Vue library which provides native Kendo UI for Vue components for the Vue ecosystem and are available under the kendo-vue-labels NPM package.
Installation
To initialize the Labels, either:
Using CDN
To use the Kendo UI for Vue Native Labels with CDN, follow the below steps:
- Reference the
labels
andintl
packages.
<script src="https://unpkg.com/@progress/kendo-vue-intl@latest/dist/cdn/js/kendo-vue-intl.js"></script>
<script src="https://unpkg.com/@progress/kendo-vue-labels@latest/dist/cdn/js/kendo-vue-labels.js"></script>
- Reference one of the Kendo UI themes to style your components.
// Load the Kendo Default Theme
<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-default@latest/dist/all.css">
// Load the Kendo Bootstrap Theme
<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-bootstrap@latest/dist/all.css">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
// To load the Kendo Material Theme
<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-material@latest/dist/all.css">
- Follow the instructions in this article to activate your product license. You can skip this step if your application already contains a license key.
Initializing with Webpack
Download and install the package. Use Node.js v5.0.0 or later.
npm install --save @progress/kendo-vue-labels @progress/kendo-vue-intl @progress/kendo-licensing
Once installed, import the package module.
// ES2015 module syntax import { Label, FloatingLabel, Hint, Error } from '@progress/kendo-vue-labels';
You are required to install one of the Kendo UI for Vue Native themes to style your components. For more information on how to add the styles, refer to the article on getting started.
Follow the instructions on the My License page to activate your license. You can skip this step if your application already contains a Kendo UI for Vue license file.
Dependencies
The Labels package requires the following peer dependencies that have to be installed by your application:
- vue
- vue-dom
- @progress/kendo-licensing
- @progress/kendo-vue-intl
Available Utilities
Currently, the Labels package provides the following components: