Repository URL to install this package:
Version:
0.9.5 ▾
|
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
}