Sha256: 34d2b88a534461188c29515480dc48d533e0ef478816a2dd6e8bd5e5a9f36e66
Contents?: true
Size: 825 Bytes
Versions: 131
Compression:
Stored size: 825 Bytes
Contents
import React, { useState } from 'react' import Passphrase from '../_passphrase' import TextInput from '../../pb_text_input/_text_input' const PassphraseStrengthChange = (props) => { const [input, setInput] = useState('') const handleChange = (e) => setInput(e.target.value) const [strength, setStrength] = useState(0) const handleStrengthChange = (str) => setStrength(str) return ( <> <div> <Passphrase label="Passphrase" onChange={handleChange} onStrengthChange={handleStrengthChange} value={input} {...props} /> <TextInput disabled label="Passphrase Strength" readOnly value={strength} /> </div> </> ) } export default PassphraseStrengthChange
Version data entries
131 entries across 131 versions & 1 rubygems