feat(dropdown): add hideLabel prop

This commit is contained in:
Eric Liu 2021-02-03 09:51:56 -08:00
commit 1cb9345653
5 changed files with 27 additions and 0 deletions

View file

@ -69,6 +69,9 @@
*/
export let label = undefined;
/** Set to `true` to visually hide the label text */
export let hideLabel = false;
/**
* Override the default translation ids
* @type {(id: any) => string}
@ -145,6 +148,7 @@
for="{id}"
class:bx--label="{true}"
class:bx--label--disabled="{disabled}"
class:bx--visually-hidden="{hideLabel}"
>
{titleText}
</label>