instacart/Snacks

View on GitHub
src/components/Forms/ValidationError.d.ts

Summary

Maintainability
A
0 mins
Test Coverage
import * as React from 'react'

export interface ValidationErrorProps {
  /** A uniq id */
  inputId: string

  /** Error text */
  text?: React.ReactNode

  /** Whether to show the error or not */
  show?: boolean
}

declare const ValidationError: React.ComponentClass<ValidationErrorProps>

export default ValidationError