react-esign
Version:
react-esign is a lightweight, dependency free React component built for capturing handwritten signatures. It provides a simple and responsive signature pad, perfect for e-signatures, form authentication, or user confirmations in React applications
18 lines (17 loc) • 642 B
TypeScript
import "./esign.css";
export type SignatureInputProps = {
onChange: (value?: File) => void;
isDisabled?: boolean;
isError?: boolean;
width?: number;
height?: number;
themeColor?: string;
strokeWidth?: number;
inputMode?: "draw" | "type" | "auto";
buttonType?: "button" | "text";
download?: boolean;
clear?: boolean;
style?: React.CSSProperties;
};
declare const SignatureInput: ({ onChange, isDisabled, isError, width, height, themeColor, strokeWidth, inputMode, buttonType, download, clear, style, }: SignatureInputProps) => import("react/jsx-runtime").JSX.Element;
export { SignatureInput };