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