diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 29cee82b..a386f367 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -3147,7 +3147,7 @@ None. | Prop name | Required | Kind | Reactive | Type | Default value | Description | | :---------- | :------- | :--------------- | :------- | ------------------------------------------ | ------------------------------------------------ | ----------------------------------------------- | | ref | No | let | Yes | null | HTMLSelectElement | null | Obtain a reference to the select HTML element | -| selected | No | let | Yes | string | undefined | Specify the selected item value | +| selected | No | let | Yes | string | number | undefined | Specify the selected item value | | size | No | let | No | "sm" | "xl" | undefined | Set the size of the select input | | inline | No | let | No | boolean | false | Set to `true` to use the inline variant | | light | No | let | No | boolean | false | Set to `true` to enable the light variant | @@ -3184,12 +3184,12 @@ None. ### Props -| Prop name | Required | Kind | Reactive | Type | Default value | Description | -| :-------- | :------- | :--------------- | :------- | -------------------- | ------------------ | ----------------------------------- | -| value | No | let | No | string | "" | Specify the option value | -| text | No | let | No | string | "" | Specify the option text | -| hidden | No | let | No | boolean | false | Set to `true` to hide the option | -| disabled | No | let | No | boolean | false | Set to `true` to disable the option | +| Prop name | Required | Kind | Reactive | Type | Default value | Description | +| :-------- | :------- | :--------------- | :------- | --------------------------------- | ------------------ | ----------------------------------- | +| value | No | let | No | string | number | "" | Specify the option value | +| text | No | let | No | string | "" | Specify the option text | +| hidden | No | let | No | boolean | false | Set to `true` to hide the option | +| disabled | No | let | No | boolean | false | Set to `true` to disable the option | ### Slots diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 975ca64b..5807768b 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -10027,7 +10027,7 @@ "name": "selected", "kind": "let", "description": "Specify the selected item value", - "type": "string", + "type": "string | number", "isFunction": false, "isFunctionDeclaration": false, "isRequired": false, @@ -10252,7 +10252,7 @@ "name": "value", "kind": "let", "description": "Specify the option value", - "type": "string", + "type": "string | number", "value": "\"\"", "isFunction": false, "isFunctionDeclaration": false, diff --git a/types/Select/Select.svelte.d.ts b/types/Select/Select.svelte.d.ts index b2be24a6..c58d12f5 100644 --- a/types/Select/Select.svelte.d.ts +++ b/types/Select/Select.svelte.d.ts @@ -7,7 +7,7 @@ export interface SelectProps * Specify the selected item value * @default undefined */ - selected?: string; + selected?: string | number; /** * Set the size of the select input diff --git a/types/Select/SelectItem.svelte.d.ts b/types/Select/SelectItem.svelte.d.ts index 65201248..fb74b2bf 100644 --- a/types/Select/SelectItem.svelte.d.ts +++ b/types/Select/SelectItem.svelte.d.ts @@ -6,7 +6,7 @@ export interface SelectItemProps { * Specify the option value * @default "" */ - value?: string; + value?: string | number; /** * Specify the option text