Closed stukennedy closed 2 years ago
$$restProps
are forwarded to svelte-search
, which allows customization of the label text through the label
prop. You can also set hideLabel
to true
to visually hide the label. I would recommend setting a label
even if visually hiding the label for accessibility.
<Typeahead
label="U.S. States"
hideLabel
{data}
{extract}
/>
I've updated the docs with examples.
Currently "Label" seems to be hard coded and fixed as it is not exposed as a prop on the svelte-typeahead, only on the svelte-search component.
Can't figure out how to hide it or change it.