Revert "chore: remove Truncate since it does not exist in Carbon v11"

This reverts commit 5833536199.
This commit is contained in:
Enrico Sacchetti 2024-01-04 13:41:08 -05:00
commit b63a076059
13 changed files with 189 additions and 1 deletions

View file

@ -167,6 +167,7 @@
- [`TooltipFooter`](#tooltipfooter)
- [`TooltipIcon`](#tooltipicon)
- [`TreeView`](#treeview)
- [`Truncate`](#truncate)
- [`UnorderedList`](#unorderedlist)
---
@ -4708,6 +4709,24 @@ export interface TreeNode {
| focus | dispatched | <code>TreeNode & { expanded: boolean; leaf: boolean; }</code> |
| keydown | forwarded | -- |
## `Truncate`
### Props
| Prop name | Required | Kind | Reactive | Type | Default value | Description |
| :-------- | :------- | :--------------- | :------- | --------------------------------- | ------------------ | ----------- |
| clamp | No | <code>let</code> | No | <code>"end" &#124; "front"</code> | <code>"end"</code> | -- |
### Slots
| Slot name | Default | Props | Fallback |
| :-------- | :------ | :---- | :------- |
| -- | Yes | -- | -- |
### Events
None.
## `UnorderedList`
### Props