`Truncate` provides text truncation functionality for single-line content. It implements Carbon's text truncation CSS classes and can be used as either a component or an action.
## Default
Display truncated text using the default component. Text is wrapped in a paragraph element and truncated at the end of the line.
Carbon Components Svelte is a Svelte component library that implements the Carbon Design System, an open source design system by IBM.
## Clamp front
Truncate text from the beginning by setting `clamp` to `"front"`.
Carbon Components Svelte is a Svelte component library that implements the Carbon Design System, an open source design system by IBM.
## use:truncate
Apply truncation to any HTML element using the `truncate` action.
Carbon Components Svelte is a Svelte component library that implements the Carbon Design System, an open source design system by IBM.
Carbon Components Svelte is a Svelte component library that implements the Carbon Design System, an open source design system by IBM.