Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit 1e287d3

Browse files
committed
Update README.md
1 parent 6c0d13d commit 1e287d3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,14 @@ If you have a fieldset of multiple checkboxes, you can group them together with
178178

179179
Radio elements behave exactly the same as checkboxes, except the `show-errors` attribute defaults to `false` as you almost always want to wrap multiple radio elements in a `form-group`.
180180

181-
*todo*
181+
You can group checkbox and radio elements on the same horizontal row by adding an `inline` attribute to the `form-group` element.
182+
183+
```blade
184+
<x-form-group name="notification_channel" label="How do you want to receive your notifications?" inline>
185+
<x-form-checkbox name="notification_channel" value="mail" label="Mail" />
186+
<x-form-checkbox name="notification_channel" value="slack" label="Slack" />
187+
</x-form-group>
188+
```
182189

183190
### Old data
184191

0 commit comments

Comments
 (0)