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:
metonym 2022-03-13 19:02:46 -07:00 committed by GitHub
commit ba0abe8e34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 47 deletions

View file

@ -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..."