mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
feat(slider): add hideLabel
prop (#1777)
Closes #1682 Co-authored-by: siaikin <abc1310054026@outlook.com>
This commit is contained in:
parent
ad711cdb38
commit
baff07e012
5 changed files with 54 additions and 23 deletions
|
@ -11215,7 +11215,7 @@
|
|||
{
|
||||
"name": "labelText",
|
||||
"kind": "let",
|
||||
"description": "Specify the label text",
|
||||
"description": "Specify the label text.\nAlternatively, use the \"labelText\" slot (e.g., <span slot=\"labelText\">...</span>)",
|
||||
"type": "string",
|
||||
"value": "\"\"",
|
||||
"isFunction": false,
|
||||
|
@ -11224,6 +11224,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": "name",
|
||||
"kind": "let",
|
||||
|
|
|
@ -17,6 +17,10 @@ Set `fullWidth` to `true` for the slider to span the full width of its containin
|
|||
|
||||
<Slider labelText="Instances" fullWidth value={0} />
|
||||
|
||||
## Hidden label
|
||||
|
||||
<Slider labelText="Instances" hideLabel value={0} />
|
||||
|
||||
## Hidden text input
|
||||
|
||||
<Slider labelText="Instances" hideTextInput value={0} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue