Skip to content

@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

ParameterType
descriptionsstring[]

Returns

React.ReactNode

as?

optional as: ContainerType

Type Parameters

Type ParameterDefault type
ContainerType extends React.ElementType"div"