Sha256: 532682503242cc7d3a84206a63474b26ce030986161714d8508d6f668a7ed9c1

Contents?: true

Size: 563 Bytes

Versions: 136

Compression:

Stored size: 563 Bytes

Contents

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

const TextInputError = (props) => {
  const [email, setEmail] = useState('')

  const handleUpdateEmail = ({ target }) => {
    setEmail(target.value)
  }
  return (
    <div>
      <TextInput
          error="Please enter a valid email address"
          label="Email Address"
          onChange={handleUpdateEmail}
          placeholder="Enter email address"
          type="email"
          value={email}
          {...props}
      />
    </div>
  )
}
export default TextInputError

Version data entries

136 entries across 136 versions & 1 rubygems

Version Path
playbook_ui-8.0.0.pre.alpha4 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.0.0.pre.alpha1 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-7.16.0.pre.alpha5 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-7.16.0.pre.alpha4 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-7.16.0.pre.alpha3 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-7.16.0.pre.alpha2 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-7.16.0.pre.alpha1 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-7.14.0.pre.alpha1 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-7.16.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-7.15.1 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-7.15.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-7.14.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-7.13.0.pre.alpha1 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-7.13.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-7.12.1 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-7.12.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx