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

@ -0,0 +1,12 @@
<script>
/** @type {"end" | "front"}*/
export let clamp = "end";
</script>
<p
class:bx--text-truncate--end="{clamp === 'end'}"
class:bx--text-truncate--front="{clamp === 'front'}"
{...$$restProps}
>
<slot />
</p>