import React, { forwardRef } from "react"; import type { OverridableComponent } from "../../utils-external"; import { cl } from "../../utils/helpers"; export interface ErrorSummaryItemProps extends React.AnchorHTMLAttributes { /** * Link text */ children: React.ReactNode; /** * Link to errormessage */ href?: string; } type ErrorSummaryItemType = OverridableComponent< ErrorSummaryItemProps, HTMLAnchorElement >; export const ErrorSummaryItem: ErrorSummaryItemType = forwardRef( ({ children, as: Component = "a", className, ...rest }, ref) => { return (
  • {children}
  • ); }, ); export default ErrorSummaryItem;