What is @progress/kendo-react-common?
@progress/kendo-react-common is a utility package that provides common functionalities and utilities used across various KendoReact components. It includes helper functions, constants, and other shared resources that facilitate the development of KendoReact applications.
What are @progress/kendo-react-common's main functionalities?
ClassNames Utility
The classNames utility helps in conditionally joining class names together. This is particularly useful for dynamically applying styles based on component state.
import { classNames } from '@progress/kendo-react-common';
const buttonClass = classNames('k-button', { 'k-primary': isPrimary, 'k-disabled': isDisabled });
console.log(buttonClass); // Outputs: 'k-button k-primary' or 'k-button k-disabled' based on the state
Guid Utility
The guid utility generates a unique identifier, which can be used for elements that require unique IDs, such as form elements or dynamically created components.
import { guid } from '@progress/kendo-react-common';
const uniqueId = guid();
console.log(uniqueId); // Outputs a unique GUID string
Draggable Component
The Draggable component provides drag-and-drop functionality. It can be used to make any element draggable and handle drag events.
import { Draggable } from '@progress/kendo-react-common';
const DraggableComponent = () => (
<Draggable onDrag={(e) => console.log('Dragging', e)}>
<div>Drag me!</div>
</Draggable>
);
Other packages similar to @progress/kendo-react-common
classnames
The 'classnames' package is a popular utility for conditionally joining class names together. It is similar to the classNames utility in @progress/kendo-react-common but is more widely used and can be integrated into any React project.
uuid
The 'uuid' package is a robust solution for generating unique identifiers (UUIDs). It offers more options and configurations compared to the guid utility in @progress/kendo-react-common.
react-draggable
The 'react-draggable' package provides comprehensive drag-and-drop functionality for React components. It offers more features and customization options compared to the Draggable component in @progress/kendo-react-common.
KendoReact Common Package for React
The KendoReact Common package delivers common utilities that can be used with the KendoReact UI components to enhance their performance and functionality.
Important
This package is а part of KendoReact—a commercial UI library.
Before installing this package, it is required that you accept the KendoReact License Agreement. You can do this either through purchasing a license or registering for a free trial.
The 30-day free trial gives you access to all the KendoReact components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the KendoReact dev team!
Head over to KendoReact and sign up today!.
Support Options
For any issues you might encounter while working with the KendoReact common, use any of the available support channels:
- Industry-leading technical support—KendoReact paid license holders and users with an active (free) trial license can take advantage of our outstanding customer support. To submit a ticket, use the dedicated KendoReact support system.
- Product forums—The KendoReact forums are part of the free support you can get from the community and from the KendoReact team.
- Feedback portal—The KendoReact feedback portal is where you can request and vote for new features to be added.
Resources
Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.