mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
docs: update truncate docs
This commit is contained in:
parent
3f23176831
commit
4724b7a6c2
1 changed files with 2 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Truncate } from "carbon-components-svelte";
|
import { Truncate, truncate } from "carbon-components-svelte";
|
||||||
import { truncate } from "carbon-components-svelte/actions";
|
|
||||||
import Preview from "../../components/Preview.svelte";
|
import Preview from "../../components/Preview.svelte";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -25,9 +24,7 @@ Set `clamp` to `"front"` to clamp the text from the front.
|
||||||
|
|
||||||
### use:truncate
|
### use:truncate
|
||||||
|
|
||||||
The `truncate` action can be used on other HTML elements.
|
The `truncate` action can be used on plain HTML elements.
|
||||||
|
|
||||||
Import path: `import { truncate } from "carbon-components-svelte/actions";`
|
|
||||||
|
|
||||||
<h4 use: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.
|
Carbon Components Svelte is a Svelte component library that implements the Carbon Design System, an open source design system by IBM.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue