diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 818301c1..c042d60d 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -3163,8 +3163,8 @@ None. | Prop name | Kind | Reactive | Type | Default value | Description | | :------------------- | :--------------- | :------- | :--------------------------------------------------- | ------------------------------------------------ | ------------------------------------------------------- | | ref | let | Yes | null | HTMLInputElement | null | Obtain a reference to the input HTML element | -| value | let | Yes | string | "" | Specify the value of the search input | | expanded | let | Yes | boolean | false | Set to `true to expand the search input | +| value | let | Yes | any | "" | Specify the value of the search input | | small | let | No | boolean | false | -- | | size | let | No | "sm" | "lg" | "xl" | "xl" | Specify the size of the search input | | searchClass | let | No | string | "" | Specify the class name passed to the outer div element | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index ade957df..a5cc26ef 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -9115,6 +9115,17 @@ "moduleName": "Search", "filePath": "src/Search/Search.svelte", "props": [ + { + "name": "value", + "kind": "let", + "description": "Specify the value of the search input", + "type": "any", + "value": "\"\"", + "isFunction": false, + "isFunctionDeclaration": false, + "constant": false, + "reactive": true + }, { "name": "small", "kind": "let", @@ -9202,17 +9213,6 @@ "constant": false, "reactive": true }, - { - "name": "value", - "kind": "let", - "description": "Specify the value of the search input", - "type": "string", - "value": "\"\"", - "isFunction": false, - "isFunctionDeclaration": false, - "constant": false, - "reactive": true - }, { "name": "placeholder", "kind": "let", diff --git a/types/Search/Search.svelte.d.ts b/types/Search/Search.svelte.d.ts index fa91b200..44b5b19c 100644 --- a/types/Search/Search.svelte.d.ts +++ b/types/Search/Search.svelte.d.ts @@ -2,6 +2,12 @@ import { SvelteComponentTyped } from "svelte"; export interface SearchProps { + /** + * Specify the value of the search input + * @default "" + */ + value?: any; + /** * @default false */ @@ -49,12 +55,6 @@ export interface SearchProps { */ expanded?: boolean; - /** - * Specify the value of the search input - * @default "" - */ - value?: string; - /** * Specify the `placeholder` attribute of the search input * @default "Search..."