mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
11 lines
279 B
Svelte
11 lines
279 B
Svelte
<script lang="ts">
|
|
import { Truncate } from "carbon-components-svelte";
|
|
|
|
export let clamp: "end" | "front" = "end";
|
|
export let text =
|
|
"This is a long text that should be truncated when it exceeds the available space";
|
|
</script>
|
|
|
|
<Truncate {clamp}>
|
|
{text}
|
|
</Truncate>
|