let
| Yes | string
| -- | Set the selected radio button value |
| disabled | let
| No | boolean
| false
| Set to `true` to disable the radio buttons |
+| legendText | let
| No | string
| ""
| Specify the legend text |
| labelPosition | let
| No | "right" | "left"
| "right"
| Specify the label position |
| orientation | let
| No | "horizontal" | "vertical"
| "horizontal"
| Specify the orientation of the radio buttons |
| id | let
| No | string
| -- | Set an id for the container div element |
### Slots
-| Slot name | Default | Props | Fallback |
-| :-------- | :------ | :---- | :------- |
-| -- | Yes | -- | -- |
+| Slot name | Default | Props | Fallback |
+| :--------- | :------ | :---- | :------------------------ |
+| -- | Yes | -- | -- |
+| legendText | No | -- | {legendText}
|
### Events
diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json
index d29c6124..2dc351c2 100644
--- a/docs/src/COMPONENT_API.json
+++ b/docs/src/COMPONENT_API.json
@@ -6960,6 +6960,16 @@
"constant": false,
"reactive": false
},
+ {
+ "name": "legendText",
+ "kind": "let",
+ "description": "Specify the legend text",
+ "type": "string",
+ "value": "\"\"",
+ "isFunction": false,
+ "constant": false,
+ "reactive": false
+ },
{
"name": "labelPosition",
"kind": "let",
@@ -6990,7 +7000,15 @@
"reactive": false
}
],
- "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
+ "slots": [
+ { "name": "__default__", "default": true, "slot_props": "{}" },
+ {
+ "name": "legendText",
+ "default": false,
+ "fallback": "{legendText}",
+ "slot_props": "{}"
+ }
+ ],
"events": [
{ "type": "forwarded", "name": "click", "element": "div" },
{ "type": "forwarded", "name": "mouseover", "element": "div" },
diff --git a/docs/src/pages/components/RadioButton.svx b/docs/src/pages/components/RadioButton.svx
index b1aed1ce..54ec568d 100644
--- a/docs/src/pages/components/RadioButton.svx
+++ b/docs/src/pages/components/RadioButton.svx
@@ -3,19 +3,43 @@ components: ["RadioButtonGroup", "RadioButton", "RadioButtonSkeleton"]
---
### Default
-+ Storage tiers may vary based on geolocation. +
+