Sha256: 6e280699bc4f8cc95d051aa5be20585cc677aebe745fd96851ffee38014a35bf

Contents?: true

Size: 774 Bytes

Versions: 31

Compression:

Stored size: 774 Bytes

Contents

import React, { useState } from 'react'
import { Passphrase, TextInput } from '../../'

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

31 entries across 31 versions & 1 rubygems

Version Path
playbook_ui-9.19.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.19.0.pre.alphafonts app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.18.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.17.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.17.0.pre.decouple.website2 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.16.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.15.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.15.0.pre.decouple.website1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.14.1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.13.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.12.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.11.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.10.0 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.jsx