mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
refactor(truncate): rename "direction" prop to "clamp"
This commit is contained in:
parent
69dae01722
commit
abe5220ec2
7 changed files with 19 additions and 18 deletions
4
types/Truncate/Truncate.d.ts
vendored
4
types/Truncate/Truncate.d.ts
vendored
|
@ -2,11 +2,11 @@
|
|||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface TruncateProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["p"]> {
|
||||
/**
|
||||
* @default "end"
|
||||
*/
|
||||
direction?: "end" | "front";
|
||||
clamp?: "end" | "front";
|
||||
}
|
||||
|
||||
export default class Truncate extends SvelteComponentTyped<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue