Getting Started with the KendoReact Common Utilities
This guide provides essential information about using the KendoReact Common Utilities package—you will learn how to install the package and add free Common Utilities to your project. The steps demonstrated in this guide are applicable to all KendoReact Common Utilities (free and premium).
After completing this guide, you will be able to reproduce the following example.
Before You Begin
If you do not have a React project, create one with Vite by running the following command:
npm create vite@latest my-app -- --template react-ts
This guide requires that you have basic knowledge of React and TypeScript, and that you have already created a blank React project.
You can accelerate your Common Utilities journey with the KendoReact Agentic UI Generator and the Component Assistant prompts.
Install the Component
The KendoReact Common Utilities package is distributed via npm and can be installed using the npm package manager.
To install the Common Utilities package along with its dependencies and Kendo theme, run the following command in the root folder of your React project:
npm i @progress/kendo-react-common @progress/kendo-theme-meridian
Import the CSS file from the package in src/App.tsx. Add this import before your existing App.css import:
import '@progress/kendo-theme-meridian/dist/all.css';
With this import in place, you already have professionally designed styling applied to your app out-of-box. You can also try any of the other available Kendo UI Themes.
Are you looking for guidance around how to create visually appealing and consistent user interfaces with Telerik UI components? Check out the Progress Design System.
Use the Component
Using the free KendoReact Common Utilities components does not require a license, even in production. To work with the premium Draggable utility, you need a commercial license key or an active trial license key.
Place the import statements in the App component file (for example: src/App.tsx) for your project. Note that the steps for installing and importing all Common Utilities components are identical.
import { SvgIcon } from '@progress/kendo-react-common';
import { paletteIcon } from '@progress/kendo-svg-icons';
-
After installing the Common Utilities package and importing the components, add the Icon's tags to the App component file of your React project (for example,
src/App.tsx).tsxreturn <SvgIcon icon={paletteIcon} size="xlarge" />; -
Additionally, the SvgIcons provide built-in appearance properties which let you control the size, flip, and theme color of the component. Try to play around with the appearance of your SvgIcon.
tsxreturn <SvgIcon icon={paletteIcon} size="xlarge" themeColor="primary" />; -
Run the application from the root folder of your project:
shnpm run dev -
Navigate to http://localhost:5173 to see the KendoReact SvgIcon component on the page.
KendoReact Common Dependencies
The Common Utilities package requires you to install the following peer dependencies in your application:
| Package Name | Description |
|---|---|
| react 18.0.0* | Contains the functionality necessary to define React components. |
| react-dom | Contains the React renderer for the web. |
| @progress/kendo-licensing | Contains the internal infrastructure related to licensing. |
| @progress/kendo-svg-icons | Contains the KendoReact SVG icons. |
Activating Your License Key
Important: The KendoReact Common Utilities have both free and premium features. Only the premium features require a license key file to be installed in your project:
- Trial usage: Start a free trial and download a trial license key file
- Commercial usage: Purchase a license and download a commercial license key file
Without a valid license key file, the premium features will display licensing warnings and watermarks.
Follow the instructions on the KendoReact My License page to download and install your license key file. You can skip this step if your application already contains a KendoReact license file.
Next Steps
Now try to add another component from the Common Utilities package yourself. The procedures for installing and importing the Common Utilities components are identical for all components in the package.
The Common Utilities package provides the following components: