Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
import { ReactNode } from 'react'

export interface ErrorRenderProp extends Function {
  (props: ErrorProps): ReactNode
}

export interface ErrorProps {
  // used to set class name
  className?: string

  // used to set text to the label
  text?: string

  // used to show error or not
  isVisible?: boolean

  /**
   * @alias text | value | children
   */
  // value?: any
  children?: ReactNode

  /**
   * renderProps
   */
  // used to render the wrapper
  renderWrapper?: ErrorRenderProp

  // used to render children
  renderError?: ErrorRenderProp
}