From f7b3ad76972e32396eea5ba2ceeae0ef84f66d60 Mon Sep 17 00:00:00 2001 From: Maxime Feburier Date: Wed, 5 Jul 2023 15:34:43 +0200 Subject: [PATCH] docs(form-core): forceDisplayMessage readme --- packages/Form/core/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/packages/Form/core/README.md b/packages/Form/core/README.md index d7379d5aa..9b5994702 100644 --- a/packages/Form/core/README.md +++ b/packages/Form/core/README.md @@ -26,3 +26,21 @@ const FieldForm = () => ( ); export default FieldForm; ``` + +## forceDisplayMessage + +The default behavior prevents HelpMessage from displaying until the user interacts (change or focus event) with Field + +You can bypass this behavior to display message anyway by setting the property forceDisplayMessage to true (false by default) + +```javascript + +``` + +Or + +```javascript + +``` + +You can add this parameter to **any input from the toolkit** since inputs pass their props to Field