Skip to content

Commit 1fbe84d

Browse files
committed
fixup! fixup! Allow check fields and selectable fields to render as required #487
1 parent b8a0e3f commit 1fbe84d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/components/CheckboxField/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ React.createElement(() => {
188188

189189
### Required State
190190

191-
The required state indicates that the input is mandatory. Required fields display an asterisk `*` after the label by
192-
default.
191+
The required state indicates that the input is mandatory. Required fields
192+
display an asterisk `*` after the label by default.
193193

194194
```docoff-react-preview
195195
React.createElement(() => {
@@ -205,9 +205,11 @@ React.createElement(() => {
205205
});
206206
```
207207

208-
However, your project may use the label color as the primary means to indicate the required state of input fields (see
209-
[Forms Theming](/docs/customize/theming/forms) for more). Because not checking an input is also a valid action, it may
210-
be confusing to users to see the optional check inputs greyed out.
208+
However, your project may use the label color as the primary means to indicate
209+
the required state of input fields (see
210+
[Forms Theming](/docs/customize/theming/forms) for more). Because not checking
211+
an input is also a valid action, it may be confusing to users to see the
212+
optional check inputs greyed out.
211213

212214
For this case, there is the `renderAsRequired` prop:
213215

0 commit comments

Comments
 (0)