Skip to content

VitaTsui/signature

Repository files navigation

前言

Signature 一个适用于 React 的签字板

效果

竖屏 横屏

安装

npm install --save @hsu-react/signature
#
yarn add @hsu-react/signature

使用

import Signature from "@hsu-react/signature";

const App:React.FC = () => {
  return (
    <Signature />
  );
}

参数

参数 说明 类型 默认值
onConfirm 点击确认回调 (src: string, blob: Blob | null) => void -
onCancel 点击取消回调 () => void -
horizontal 是否横屏 boolean false
visible 是否显示 boolean false

About

A React Signature Component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published