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-10.21.0.pre.alpha.lightbox app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.21.0.pre.alpha.rg1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.21.0.pre.alpha.jg1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.21.0.pre.alpha.na1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.21.0.pre.alpha.jd1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.20.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.19.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.19.0.pre.lightbox app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.18.2 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.19.0.pre.popover.alpha1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.18.1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.18.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.17.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.16.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.15.1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.15.1.pre.alpha.rubocop.deps app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.15.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.14.1.pre.alpha2 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.14.1.pre.alpha1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-10.14.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx