mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
refactor(search): use native binding for value
prop (#1173)
* refactor(search): use native binding for value prop * feat(search): type the value prop as any
This commit is contained in:
parent
59ecc53a89
commit
ba0abe8e34
4 changed files with 26 additions and 47 deletions
18
types/Search/Search.svelte.d.ts
vendored
18
types/Search/Search.svelte.d.ts
vendored
|
@ -2,6 +2,12 @@
|
|||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface SearchProps {
|
||||
/**
|
||||
* Specify the value of the search input
|
||||
* @default ""
|
||||
*/
|
||||
value?: any;
|
||||
|
||||
/**
|
||||
* @default false
|
||||
*/
|
||||
|
@ -49,18 +55,6 @@ export interface SearchProps {
|
|||
*/
|
||||
expanded?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the value of the search input
|
||||
* @default ""
|
||||
*/
|
||||
value?: string;
|
||||
|
||||
/**
|
||||
* Specify the `type` attribute of the search input
|
||||
* @default "text"
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* Specify the `placeholder` attribute of the search input
|
||||
* @default "Search..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue