Input
笔画按速度变粗细、平滑跟随,Clear 自最后一点向前反向擦除墨迹,停笔后淡出并收缩成 Signed 胶囊。
Draw a signature with a mouse, finger, or stylus. Undo and Clear are available while the pad is editable. The pad signs itself after a short pause.
import SignaturePad from "./signature-pad";
import { SIGNATURE_CSS } from "./signature-css";
export default function Demo() {
return (
<div className="sig-demo w-full max-w-[340px]">
<style>{SIGNATURE_CSS}</style>
<div className="grid h-[212px] w-full place-items-center">
<SignaturePad />
</div>
</div>
);
}