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.3.0.pre.alpha1 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.2.1.pre.alpha1 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.2.1 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.1.3 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.4.0.alpha.dependencies.2 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.4.0.alpha.dependencies.1 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.2.0.pre.alpha4 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.2.0.pre.alpha3 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.2.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.1.2 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.1.0.pre.alpha1 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.0.3 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.2.0.pre.alpha2 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.1.1 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.0.2 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.2.0.pre.alpha1 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.1.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.0.1 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.0.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
playbook_ui-8.0.0.pre.alpha5 app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx