mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36: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
|
@ -4,6 +4,12 @@
|
|||
* @type {number | string}
|
||||
*/
|
||||
export let value = "";
|
||||
|
||||
/**
|
||||
* Specify a custom placeholder
|
||||
* @type {string}
|
||||
*/
|
||||
export let placeholder = "Search...";
|
||||
|
||||
/** Set to `true` to expand the search bar */
|
||||
export let expanded = false;
|
||||
|
@ -48,6 +54,7 @@
|
|||
size="sm"
|
||||
tabindex="{expanded ? tabindex : '-1'}"
|
||||
disabled="{disabled}"
|
||||
placeholder="{placeholder}"
|
||||
{...$$restProps}
|
||||
bind:ref
|
||||
bind:value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue