UNPKG

@octopusdeploy/design-system-components

Version:
20 lines (19 loc) 546 B
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;