diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md
index 41c2730b..29a61239 100644
--- a/COMPONENT_INDEX.md
+++ b/COMPONENT_INDEX.md
@@ -4729,9 +4729,10 @@ export interface TreeNode {
### Props
-| Prop name | Required | Kind | Reactive | Type | Default value | Description |
-| :-------- | :------- | :--------------- | :------- | --------------------------------- | ------------------ | ----------- |
-| clamp | No | let
| No | "end" | "front"
| "end"
| -- |
+| Prop name | Required | Kind | Reactive | Type | Default value | Description |
+| :-------- | :------- | :--------------- | :------- | ---------------------------------------- | ------------------ | -------------------------------- |
+| clamp | No | let
| No | "end" | "front"
| "end"
| Specify the truncation direction |
+| tag | No | let
| No | keyof HTMLElementTagNameMap
| "p"
| Specify the tag name |
### Slots
diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json
index 015716aa..8dc9f9bd 100644
--- a/docs/src/COMPONENT_API.json
+++ b/docs/src/COMPONENT_API.json
@@ -14723,6 +14723,7 @@
{
"name": "clamp",
"kind": "let",
+ "description": "Specify the truncation direction",
"type": "\"end\" | \"front\"",
"value": "\"end\"",
"isFunction": false,
@@ -14730,13 +14731,25 @@
"isRequired": false,
"constant": false,
"reactive": false
+ },
+ {
+ "name": "tag",
+ "kind": "let",
+ "description": "Specify the tag name",
+ "type": "keyof HTMLElementTagNameMap",
+ "value": "\"p\"",
+ "isFunction": false,
+ "isFunctionDeclaration": false,
+ "isRequired": false,
+ "constant": false,
+ "reactive": false
}
],
"moduleExports": [],
"slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
"events": [],
"typedefs": [],
- "rest_props": { "type": "Element", "name": "p" }
+ "rest_props": { "type": "Element", "name": "svelte:element" }
},
{
"moduleName": "UnorderedList",
diff --git a/src/Truncate/Truncate.svelte b/src/Truncate/Truncate.svelte
index f9853f06..fa3778c5 100644
--- a/src/Truncate/Truncate.svelte
+++ b/src/Truncate/Truncate.svelte
@@ -1,12 +1,24 @@
-