mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
Add placeholder prop to ToolbarSearch
This commit is contained in:
parent
35031e800c
commit
efc9fd6d08
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,9 @@
|
||||||
/** Set to `true` to disable the search bar */
|
/** Set to `true` to disable the search bar */
|
||||||
export let disabled = false;
|
export let disabled = false;
|
||||||
|
|
||||||
|
/** Specify the `placeholder` attribute of the search input */
|
||||||
|
export let placeholder = "Search...";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set to `true` to filter table rows using the search value.
|
* Set to `true` to filter table rows using the search value.
|
||||||
*
|
*
|
||||||
|
@ -91,6 +94,7 @@
|
||||||
tabindex="{tabindex}"
|
tabindex="{tabindex}"
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
|
placeholder="{placeholder}"
|
||||||
searchClass="{classes} {$$restProps.class}"
|
searchClass="{classes} {$$restProps.class}"
|
||||||
bind:ref
|
bind:ref
|
||||||
bind:value
|
bind:value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue