mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(toggle): add missing hideLabel
prop (#1414)
* fix(toggle): add missing hideLabel prop * Run "yarn build:docs" * test(toggle): assert hideLabel prop * docs(toggle): add "Hidden label text" example
This commit is contained in:
parent
614e6eb087
commit
f4d12b805a
6 changed files with 34 additions and 4 deletions
6
types/Toggle/Toggle.svelte.d.ts
vendored
6
types/Toggle/Toggle.svelte.d.ts
vendored
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue