@matthew.ngo/react-form-kit
Version:
Form Kit for React. It consists of a set of components that can be used to create complex forms in a simple and declarative way.
4 lines (3 loc) • 364 B
TypeScript
import { ErrorType } from './types';
export declare const useErrorIcon: (type: ErrorType) => import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
export declare const useTruncatedMessage: (message: string, maxLength?: number) => (message: string, maxLength?: number) => string;