import { ComponentProps, FC, ReactNode } from "react";
interface NvLabelProps extends ComponentProps<"label"> {
/** The for attribute of the label element. */
uid?: string;
/** The label text over the wrapped node. */
label?: string;
/** The text between the label and the wrapped node. */
description?: string;
/** The error text under the wrapped node, if true the label is red. */
error?: string;
/** If true, asterisk symbol is added after the label. */
required?: boolean;
/** The additional CSS class for the label element. */
className?: string;
/** If true, displays the clear button over the wrapped node. */
clearable?: boolean;
/** Callback fired when the clear button is clicked. */
onClear?: () => void;
/** The node is wrapped with label element. */
children?: ReactNode;
}
/**
* Functional component for rendering a label with optional description, error, clear button and children.
*
* @param uid The unique identifier for the label.
* @param label The text to display as the label.
* @param description Additional information to display below the label.
* @param error Error message to display if there is an error.
* @param required Indicates if the label is required.
* @param clearable Indicates if the clear button is displayed.
* @param onClear Callback fired when the clear button is clicked.
* @param children The child components to render within the label.
* @param className Additional CSS class names for styling.
* @returns JSX.Element representing the label component.
*/
declare const NvLabel: FC;
export default NvLabel;