diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 671f75d5..6bef1bd4 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -4347,6 +4347,7 @@ export type CarbonTheme = "white" | "g10" | "g80" | "g90" | "g100"; | labelA | No | let | No | string | "Off" | Specify the label for the untoggled state | | labelB | No | let | No | string | "On" | Specify the label for the toggled state | | labelText | No | let | No | string | "" | Specify the label text | +| hideLabel | No | let | No | boolean | false | Set to `true` to visually hide the label text | | id | No | let | No | string | "ccs-" + Math.random().toString(36) | Set an id for the input element | | name | No | let | No | string | undefined | Specify a name attribute for the checkbox input | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 88e67162..8786b33e 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -13494,6 +13494,18 @@ "constant": false, "reactive": false }, + { + "name": "hideLabel", + "kind": "let", + "description": "Set to `true` to visually hide the label text", + "type": "boolean", + "value": "false", + "isFunction": false, + "isFunctionDeclaration": false, + "isRequired": false, + "constant": false, + "reactive": false + }, { "name": "id", "kind": "let", diff --git a/types/Toggle/Toggle.svelte.d.ts b/types/Toggle/Toggle.svelte.d.ts index 4f7fef94..27abc2d0 100644 --- a/types/Toggle/Toggle.svelte.d.ts +++ b/types/Toggle/Toggle.svelte.d.ts @@ -39,6 +39,12 @@ export interface ToggleProps */ labelText?: string; + /** + * Set to `true` to visually hide the label text + * @default false + */ + hideLabel?: boolean; + /** * Set an id for the input element * @default "ccs-" + Math.random().toString(36)