instacart/Snacks

View on GitHub
src/components/Forms/docs/ServerError.md

Summary

Maintainability
Test Coverage
ServerError Example:

```jsx
import { TextField } from 'ic-snacks'

; <div>
    <TextField
      name="test"
      type="email"
      floatingLabelText="Email"
      hintText="Enter your email address"
      serverError="The email you have entered is already taken"
      defaultValue="foobar@instacart.com"
      isValid={false}
    />
  </div>
```