obyte-qr-button
TypeScript icon, indicating that this package has built-in type declarations

0.0.16 • Public • Published

Obyte QR Button

Install

npm i obyte-qr-button

Use

import QRButton from "obyte-qr-button"

Required packages:

  • react
  • react-dom
  • antd (with import styles)
  • @ant-design/icons

Example

import QRButton from "obyte-qr-button" 

const config = {
  title: <span>Scan this QR code <br /> with your mobile phone</span>,
  downloadTitle: "Download Obyte wallet",
  tooltip: "This will open your Obyte wallet installed on this computer and send the transaction",
  tooltipMobile: "Send the transaction from your mobile phone",
  install: "Install Obyte wallet for [ios] or [android] if you don't have one yet",
  obyteIn: "Obyte in"
}

export const App = () => {
    return <QRButton href="..." config={config} onClick={()=>{console.log("click!")}}>Send</QRButton>
}
  • config props is not required

Readme

Keywords

none

Package Sidebar

Install

npm i obyte-qr-button

Weekly Downloads

3

Version

0.0.16

License

MIT

Unpacked Size

48 kB

Total Files

13

Last publish

Collaborators

  • tonyofbyteball
  • taump