diff --git a/docs/components/radio-group.md b/docs/components/radio-group.md index 4a0986c49..2ce7e5ab3 100644 --- a/docs/components/radio-group.md +++ b/docs/components/radio-group.md @@ -5,11 +5,14 @@ Radio Groups are used to group multiple radios so they function as a single control. ```html preview - - Option 1 - Option 2 - Option 3 - +
+ + Option 1 + Option 2 + Option 3 + + Submit +
``` ```jsx react @@ -17,11 +20,15 @@ import { SlRadio, SlRadioGroup } from '@shoelace-style/shoelace/dist/react'; const App = () => ( - + Option 1 - Option 2 - Option 3 + + Option 2 + + + Option 3 + ); ``` @@ -34,9 +41,9 @@ You can show a fieldset and legend that wraps the radio group using the `fieldse ```html preview - Option 1 - Option 2 - Option 3 + Option 1 + Option 2 + Option 3 ``` @@ -45,11 +52,15 @@ import { SlRadio, SlRadioGroup } from '@shoelace-style/shoelace/dist/react'; const App = () => ( - + Option 1 - Option 2 - Option 3 + + Option 2 + + + Option 3 + ); ``` diff --git a/docs/components/radio.md b/docs/components/radio.md index 328a5f91c..025b467b7 100644 --- a/docs/components/radio.md +++ b/docs/components/radio.md @@ -8,9 +8,9 @@ Radios are designed to be used with [radio groups](/components/radio-group). As ```html preview - Option 1 - Option 2 - Option 3 + Option 1 + Option 2 + Option 3 ``` @@ -19,11 +19,15 @@ import { SlRadio, SlRadioGroup } from '@shoelace-style/shoelace/dist/react'; const App = () => ( - + Option 1 - Option 2 - Option 3 + + Option 2 + + + Option 3 + ); ``` @@ -38,10 +42,10 @@ Use the `disabled` attribute to disable a radio. ```html preview - Option 1 - Option 2 - Option 3 - Disabled + Option 1 + Option 2 + Option 3 + Disabled ``` @@ -50,12 +54,16 @@ import { SlRadio, SlRadioGroup } from '@shoelace-style/shoelace/dist/react'; const App = () => ( - + Option 1 - Option 2 - Option 3 - + + Option 2 + + + Option 3 + + Disabled