The Message Wrapper component can be used by importing { MessageWrapper } from "finallyreact"
MessageWrapper can be wrapped around any component and will display a message above or below.
The Message Wrapper component can be used by importing { MessageWrapper } from "finallyreact"
MessageWrapper can be wrapped around any component and will display a message above or below.
Prop Name | Prop Type | Description |
---|---|---|
children | React.ReactNode | Content to be wrapped by the message wrapper |
labelProps | HTMLAttributes | Props for the message label |
location | 'top' | 'bottom' | Location of the message |
message | string | Message to be displayed |
show | boolean | Whether to show the message |