From 9c50f7f4e9bbcc904b2d613d8603adb6d872f0b4 Mon Sep 17 00:00:00 2001 From: Adam Kudrna Date: Mon, 9 Dec 2024 13:32:12 +0100 Subject: [PATCH] fixup! fixup! Allow check fields and selectable fields to render as required #487 --- src/components/CheckboxField/README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/CheckboxField/README.md b/src/components/CheckboxField/README.md index e5460285..d371fd00 100644 --- a/src/components/CheckboxField/README.md +++ b/src/components/CheckboxField/README.md @@ -188,8 +188,8 @@ React.createElement(() => { ### Required State -The required state indicates that the input is mandatory. Required fields display an asterisk `*` after the label by -default. +The required state indicates that the input is mandatory. Required fields +display an asterisk `*` after the label by default. ```docoff-react-preview React.createElement(() => { @@ -205,9 +205,11 @@ React.createElement(() => { }); ``` -However, your project may use the label color as the primary means to indicate the required state of input fields (see -[Forms Theming](/docs/customize/theming/forms) for more). Because not checking an input is also a valid action, it may -be confusing to users to see the optional check inputs greyed out. +However, your project may use the label color as the primary means to indicate +the required state of input fields (see +[Forms Theming](/docs/customize/theming/forms) for more). Because not checking +an input is also a valid action, it may be confusing to users to see the +optional check inputs greyed out. For this case, there is the `renderAsRequired` prop: