Skip to content

sabinamp/using-svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App.

SVG SIgnature Sketch Integration in React

SVG CSS Animation Integration in React - implemented 2 alternatives: using web components or only React.

App Structure

  • App,
  • SVGAnimContainer1 which holds 3 SignatureR component instances
  • SVGAnimContainer2 holds 2 SignatureR2 component instances
  • layout: Header, Footer, Content
  • components: SignatureR, SignatureR2
  • SignatureR,SignatureR2 Component props:
  • stroke fill
  • stroke-width
  • opacity
  • background
  • width, height of the signature
  • SignatureR.js React Component is a wrapper for the Signature.js web component
  • SignatureR2.js React Component is a class component wrapping SVG

PropTypes validations are very important PropTypes is used to document the intended types of properties passed to components. React will check the props passed to your components against those definitions, and it will send a warning in development if they don't match. (npm i prop-types) Note: there is a short presentation pdf in the docs folder!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published