Socket
Socket
Sign inDemoInstall

@anvilco/react-signature-frame

Package Overview
Dependencies
8
Maintainers
6
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @anvilco/react-signature-frame

The AnvilSignatureFrame React component for embedded Etch signatures


Version published
Weekly downloads
2.4K
decreased by-4.79%
Maintainers
6
Install size
9.58 kB
Created
Weekly downloads
 

Readme

Source

AnvilSignatureFrame

A minimal component that handles the Anvil Etch signing lifecycle.

image

Usage

yarn add @anvilco/react-signature-frame
npm install @anvilco/react-signature-frame
import AnvilSignatureFrame from '@anvilco/react-signature-frame'

<AnvilSignatureFrame
  signURL={signURL}
  scroll="smooth"
  onLoad={() => setLoading(true)}
  onFinish={(redirectURL) => window.location.assign(redirectURL)}
/>

Props

signURL
string (required)

A URL to the Anvil signature page generated from the generateEtchSignURL GraphQL mutation. The signature frame will be displaying the signing page through this URL.

Example:

signURL={`https://app.useanvil.com/etch/8iJDbq8dkEmjrsNw7Dnb/sign?token=dsa...`}
scroll
string | null
  • auto - scrolls the window to the signing frame when mounted
  • smooth - smoothly scrolls the window to the signing frame when mounted
  • null - disables scrolling
onLoad
function

This function is called when the signing page has finished loading.

Example:

onLoad={() => setLoading(false)}
onFinish
function

This function takes the redirectURL as a parameter; called when a user has finished signing.

Example: This is called by default if not defined otherwise.

onFinish={(redirectURL) => window.location.assign(redirectURL)}
enableDefaultStyles
boolean (default: true)

Set to false to disable the default inline styles of the component.

iframeWarningProps
object

Pass in custom props into the paragraph tag displayed if the user's browser does not support iframes.

Example:

iframeWarningProps={{ className: 'warning-text' }}

Styling

Customize the component by overriding the default styles. Pass in props to override IDs and classNames.

Anvil Etch E-Sign Docs

Read the Docs

Notes

  • Please contact us at support@useanvil.com to enable iframe embedded signing for production signature packets.
  • React >= v16.0 required.

Bugs

Please file an issue for bugs, missing documentation, or unexpected behavior.

Questions or Feedback

Please email us at hello@useanvil.com.

Keywords

FAQs

Last updated on 02 Dec 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc