diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 5a63bf96..69ad1f90 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -3041,6 +3041,7 @@ None. | selected | let | Yes | string | undefined | 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 | +| hideLegend | let | No | boolean | false | Set to `true` to visually hide the legend | | 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 | undefined | Set an id for the container div element | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 6f0130f3..b9ccb5ce 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -8793,6 +8793,17 @@ "constant": false, "reactive": false }, + { + "name": "hideLegend", + "kind": "let", + "description": "Set to `true` to visually hide the legend", + "type": "boolean", + "value": "false", + "isFunction": false, + "isFunctionDeclaration": false, + "constant": false, + "reactive": false + }, { "name": "labelPosition", "kind": "let", diff --git a/types/RadioButtonGroup/RadioButtonGroup.svelte.d.ts b/types/RadioButtonGroup/RadioButtonGroup.svelte.d.ts index 3dc57d0a..0e92290b 100644 --- a/types/RadioButtonGroup/RadioButtonGroup.svelte.d.ts +++ b/types/RadioButtonGroup/RadioButtonGroup.svelte.d.ts @@ -21,6 +21,12 @@ export interface RadioButtonGroupProps */ legendText?: string; + /** + * Set to `true` to visually hide the legend + * @default false + */ + hideLegend?: boolean; + /** * Specify the label position * @default "right"