mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
feat(truncate): integrate Truncate
with v11
This commit is contained in:
parent
b4930910bc
commit
6c2d416721
8 changed files with 57 additions and 41 deletions
|
@ -1,23 +1,10 @@
|
|||
<script lang="ts">
|
||||
import { Truncate } from "../types";
|
||||
import { truncate } from "../types";
|
||||
import { Truncate, truncate } from "../types";
|
||||
</script>
|
||||
|
||||
<Truncate>
|
||||
Carbon Components Svelte is a Svelte component library that implements the
|
||||
Carbon Design System, an open source design system by IBM.
|
||||
<Truncate tag="div" clamp="front" aria-label="">
|
||||
Carbon Components Svelte is a Svelte component library.
|
||||
</Truncate>
|
||||
|
||||
<Truncate clamp="front">
|
||||
Carbon Components Svelte is a Svelte component library that implements the
|
||||
Carbon Design System, an open source design system by IBM.
|
||||
</Truncate>
|
||||
|
||||
<h4 use:truncate>
|
||||
Carbon Components Svelte is a Svelte component library that implements the
|
||||
Carbon Design System, an open source design system by IBM.
|
||||
</h4>
|
||||
<h4 use:truncate="{{ clamp: 'front' }}">
|
||||
Carbon Components Svelte is a Svelte component library that implements the
|
||||
Carbon Design System, an open source design system by IBM.
|
||||
</h4>
|
||||
<div use:truncate></div>
|
||||
<div use:truncate="{{ clamp: 'front' }}"></div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue