diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md
index 58506edc..052c625c 100644
--- a/COMPONENT_INDEX.md
+++ b/COMPONENT_INDEX.md
@@ -921,6 +921,8 @@ None.
| Prop name | Kind | Reactive | Type | Default value | Description |
| :-------------- | :--------------- | :------- | :---------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
+| feedback | let
| No | string
| "Copied!"
| Set the feedback text shown after clicking the button |
+| feedbackTimeout | let
| No | number
| 2000
| Set the timeout duration (ms) to display feedback text |
| iconDescription | let
| No | string
| "Copy to clipboard"
| Set the title and ARIA label for the copy button |
| text | let
| No | string
| undefined
| Specify the text to copy |
| copy | let
| No | (text: string) => void
| async (text) => { try { await navigator.clipboard.writeText(text); } catch (e) { console.log(e); } }
| Override the default copy behavior of using the navigator.clipboard.writeText API to copy text |
@@ -3163,8 +3165,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 |
@@ -3172,7 +3174,6 @@ None.
| light | let
| No | boolean
| false
| Set to `true` to enable the light variant |
| disabled | let
| No | boolean
| false
| Set to `true` to disable the search input |
| expandable | let
| No | boolean
| false
| Set to `true` to enable the expandable variant |
-| type | let
| No | string
| "text"
| Specify the `type` attribute of the search input |
| placeholder | let
| No | string
| "Search..."
| Specify the `placeholder` attribute of the search input |
| autocomplete | let
| No | "on" | "off"
| "off"
| Specify the `autocomplete` attribute |
| autofocus | let
| No | boolean
| false
| Set to `true` to auto focus the search element |
diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json
index 0c1e3f74..f7698d84 100644
--- a/docs/src/COMPONENT_API.json
+++ b/docs/src/COMPONENT_API.json
@@ -2180,6 +2180,28 @@
"moduleName": "CopyButton",
"filePath": "src/CopyButton/CopyButton.svelte",
"props": [
+ {
+ "name": "feedback",
+ "kind": "let",
+ "description": "Set the feedback text shown after clicking the button",
+ "type": "string",
+ "value": "\"Copied!\"",
+ "isFunction": false,
+ "isFunctionDeclaration": false,
+ "constant": false,
+ "reactive": false
+ },
+ {
+ "name": "feedbackTimeout",
+ "kind": "let",
+ "description": "Set the timeout duration (ms) to display feedback text",
+ "type": "number",
+ "value": "2000",
+ "isFunction": false,
+ "isFunctionDeclaration": false,
+ "constant": false,
+ "reactive": false
+ },
{
"name": "iconDescription",
"kind": "let",
@@ -2216,16 +2238,12 @@
"moduleExports": [],
"slots": [],
"events": [
- { "type": "forwarded", "name": "click", "element": "Copy" },
- { "type": "forwarded", "name": "animationend", "element": "Copy" },
+ { "type": "forwarded", "name": "click", "element": "button" },
+ { "type": "forwarded", "name": "animationend", "element": "button" },
{ "type": "dispatched", "name": "copy" }
],
"typedefs": [],
- "rest_props": { "type": "InlineComponent", "name": "Copy" },
- "extends": {
- "interface": "CopyProps",
- "import": "\"../Copy/Copy.svelte\""
- }
+ "rest_props": { "type": "Element", "name": "button" }
},
{
"moduleName": "DataTable",
@@ -9221,6 +9239,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",
@@ -9308,28 +9337,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": "type",
- "kind": "let",
- "description": "Specify the `type` attribute of the search input",
- "type": "string",
- "value": "\"text\"",
- "isFunction": false,
- "isFunctionDeclaration": false,
- "constant": false,
- "reactive": false
- },
{
"name": "placeholder",
"kind": "let",
diff --git a/docs/src/pages/components/Form.svx b/docs/src/pages/components/Form.svx
index 5d66a2dd..1f007664 100644
--- a/docs/src/pages/components/Form.svx
+++ b/docs/src/pages/components/Form.svx
@@ -60,3 +60,17 @@ components: ["Form", "FormGroup"]
+
+### Prevent default behavior
+
+The forwarded `submit` event is not modified. Use `e.preventDefault()` to prevent the native form submission behavior.
+
+```
+