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

Version Path
playbook_ui-11.13.0.pre.alpha.fontawesome1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.13.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.12.1.pre.alpha.charts1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.12.1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.13.0.pre.alpha.fileupload1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.12.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.11.0.pre.alpha.paginate2 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.11.0.pre.alpha.dialog2 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.11.0.pre.alpha.paginate1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.11.0.pre.alpha.renderer1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.11.0.pre.alpha.dialog1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.11.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.10.0.pre.alpha.pre.bold1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.10.0.pre.alpha.pagination1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.10.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.9.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.9.0.pre.alpha.fileupload1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.8.1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.8.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-11.7.0.pre.alpha.table1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx