@tezid/proofs-component
v1.1.1
Published
TezID Proofs React Component
Downloads
13
Readme
@tezid/proofs-component
TezID Proofs React Component
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>
)
}
License
MIT © tezid