@progress/kendo-react-labels
Version:
React Labels package provides components for labelling form editors. KendoReact Labels package
60 lines (59 loc) • 1.83 kB
TypeScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { default as PropTypes } from 'prop-types';
import { LabelsClassStructure } from '@progress/kendo-react-common';
import * as React from 'react';
/**
* Represents the props of the KendoReact Error component.
*/
export interface ErrorProps {
/**
* Represents the id of the Error element.
* The value should be also set to the editor's `ariaDescribedBy` property.
*/
id?: string;
/**
* Specifies the alignment of the Error text.
*
* The possible values are:
* * (Default) `start`
* * `end`
*/
direction?: 'start' | 'end';
/**
* Determines the children nodes.
*/
children: any;
/**
* The styles that are applied to the Error.
*/
style?: React.CSSProperties;
/**
* Sets a class of the Error DOM element.
*/
className?: string;
/**
* @hidden
*/
unstyled?: LabelsClassStructure;
}
/**
* Represents the KendoReact Error component.
* Render the error text that will be shown underneath the form editor after a validation.
*/
export declare const Error: {
(props: ErrorProps): React.JSX.Element;
propTypes: {
id: PropTypes.Requireable<string>;
direction: PropTypes.Requireable<string>;
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
style: PropTypes.Requireable<object>;
className: PropTypes.Requireable<string>;
};
displayName: string;
};