@octopusdeploy/design-system-components
Version:
The design systems component library.
20 lines (19 loc) • 546 B
TypeScript
export interface InputErrorProps {
/**
* Error message to display.
*/
error?: string;
/**
* The ID of the error element.
* This is important for accessiblity and ensures that the input is correctly associated with the error.
*/
id: string;
}
/**
*
* InputError renders error messages for form fields, displaying validation errors
* with an accompanying danger icon.
*
* @internal
*/
export declare function InputError({ error, id }: InputErrorProps): import("react/jsx-runtime").JSX.Element | null;