carbon-components-svelte/tests/Truncate/Truncate.test.svelte
2025-03-17 19:27:40 -07:00

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>