diff --git a/docs/src/pages/components/RadioButton.svx b/docs/src/pages/components/RadioButton.svx index 98ad0681..3fabb586 100644 --- a/docs/src/pages/components/RadioButton.svx +++ b/docs/src/pages/components/RadioButton.svx @@ -9,33 +9,9 @@ components: ["RadioButtonGroup", "RadioButton", "RadioButtonSkeleton"] ## Default - - - - - +The `name` prop set on `RadioButtonGroup` is passed to the individual `RadioButton` inputs. -## With legend text - - - - - - - -## Legend text slot - -Use the named "legendText" slot to customize the legend text. - - -
- Storage tier (disk) - -

- Storage tiers may vary based on geolocation. -

-
-
+ @@ -53,6 +29,24 @@ Use `hideLegend` to visually hide the legend text. +## Legend text slot + +Use the named "legendText" slot to customize the legend text. + + +
+ Storage tier (disk) + +

+ Storage tiers may vary based on geolocation. +

+
+
+ + + +
+ ## Reactive example Use the `selected` prop to bind and update the selected value. @@ -61,7 +55,7 @@ Use the `selected` prop to bind and update the selected value. ## Left-aligned label text - + @@ -69,7 +63,7 @@ Use the `selected` prop to bind and update the selected value. ## Disabled buttons - + @@ -77,7 +71,7 @@ Use the `selected` prop to bind and update the selected value. ## Vertical orientation - + diff --git a/docs/src/pages/framed/RadioButton/RadioButtonReactive.svelte b/docs/src/pages/framed/RadioButton/RadioButtonReactive.svelte index 9168d21f..0de33503 100644 --- a/docs/src/pages/framed/RadioButton/RadioButtonReactive.svelte +++ b/docs/src/pages/framed/RadioButton/RadioButtonReactive.svelte @@ -10,15 +10,20 @@ let plan = plans[1]; - - {#each plans as value} + + {#each plans as value (value)} {/each} -
- {#each plans as value} +
+ {#each plans as value (value)}