@self-assert/react / ErrorMessageProps
Type Alias: ErrorMessageProps<ContainerType>
ErrorMessageProps<
ContainerType
> =React.ComponentPropsWithoutRef
<ContainerType
> &object
Type declaration
draftAssistant
draftAssistant:
DraftAssistant
brokenRulesDescriptions?
optional
brokenRulesDescriptions:string
[]
Additional descriptions to be displayed.
renderErrors()?
optional
renderErrors: (descriptions
) =>React.ReactNode
Parameters
Parameter | Type |
---|---|
descriptions | string [] |
Returns
React.ReactNode
as?
optional
as:ContainerType
Type Parameters
Type Parameter | Default type |
---|---|
ContainerType extends React.ElementType | "div" |