1.1.1 • Published 3 years ago

@tezid/proofs-component v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@tezid/proofs-component

TezID Proofs React Component

NPM JavaScript Style Guide

Install

npm install --save @tezid/proofs-component

Usage

import { TezIDProof } from '@tezid/proofs-component'
import '@tezid/proofs-component/dist/index.css'

const App = () => {
  const proofs = [
    { id: 'email', label: 'Email' }, 
    { id: 'phone', label: 'Phone' }
  ]
  const proofItems = proofs.map(p => 
    <TezIDProof 
      key={p.id} 
      proof={p} 
      selected={p.id === 'email'}
      onClick={p => console.log(p)} 
    />
  )
  return (
    <div style={{ display: 'flex' }}>
      {proofItems}
    </div>
  )
}

screenshot

License

MIT © tezid

1.1.1

3 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago