Message Wrapper

Display info next to any component

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.

Examples

type "test"
type "test"

MessageWrapper Props

Prop NameProp TypeDescription
childrenReact.ReactNodeContent to be wrapped by the message wrapper
labelPropsHTMLAttributesProps for the message label
location'top' | 'bottom'Location of the message
messagestringMessage to be displayed
showbooleanWhether to show the message