Skip to content

Add element prop

Compare
Choose a tag to compare
@coston coston released this 13 Feb 19:33
· 442 commits to master since this release

Obfuscate any dom element with the element prop. Props to @ravinggenius for adding this feature! 🙌

Example Usage:

<Obfuscate 
  element='p'
  style={{textAlign:'left'}}>
  This paragraph is more secret than others.
</Obfuscate>
  • Merge branch 'ravinggenius-feature/override-component'. da9b0c5
  • Change name of component prop to element & make view only if not anchor 3473465
  • Update element prop test 4279877
  • Add element prop example 901eca9
  • Add note on element props fbe9e4a
  • remove editor config 21d8685
  • Skip href and onClick props for view-only components efd70d7
  • General code cleanup 397284b

v3.0.0...v3.1.0