mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
Allowing a custom placeholder in ToolbarSearch
This commit is contained in:
parent
390b621ed4
commit
cee26b7b38
1 changed files with 7 additions and 0 deletions
|
@ -5,6 +5,12 @@
|
||||||
*/
|
*/
|
||||||
export let value = "";
|
export let value = "";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specify a custom placeholder
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
|
export let placeholder = "Search...";
|
||||||
|
|
||||||
/** Set to `true` to expand the search bar */
|
/** Set to `true` to expand the search bar */
|
||||||
export let expanded = false;
|
export let expanded = false;
|
||||||
|
|
||||||
|
@ -48,6 +54,7 @@
|
||||||
size="sm"
|
size="sm"
|
||||||
tabindex="{expanded ? tabindex : '-1'}"
|
tabindex="{expanded ? tabindex : '-1'}"
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
|
placeholder="{placeholder}"
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
bind:ref
|
bind:ref
|
||||||
bind:value
|
bind:value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue