Add hideLabel prop to visually hide label

This commit is contained in:
metonym 2023-07-23 11:58:04 -07:00
commit 643dc3ab23
5 changed files with 64 additions and 35 deletions

View file

@ -96,11 +96,18 @@ export interface SliderProps extends RestProps {
invalid?: boolean;
/**
* Specify the label text
* Specify the label text.
* Alternatively, use the "labelText" slot (e.g., <span slot="labelText">...</span>)
* @default ""
*/
labelText?: string;
/**
* Set to `true` to visually hide the label text
* @default false
*/
hideLabel?: boolean;
/**
* Set a name for the slider element
* @default ""