mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
21 lines
461 B
TypeScript
21 lines
461 B
TypeScript
import type { SvelteComponentTyped } from "svelte";
|
|
import type { SvelteHTMLElements } from "svelte/elements";
|
|
|
|
type $RestProps = SvelteHTMLElements["p"];
|
|
|
|
type $Props = {
|
|
/**
|
|
* @default "end"
|
|
*/
|
|
clamp?: "end" | "front";
|
|
|
|
[key: `data-${string}`]: any;
|
|
};
|
|
|
|
export type TruncateProps = Omit<$RestProps, keyof $Props> & $Props;
|
|
|
|
export default class Truncate extends SvelteComponentTyped<
|
|
TruncateProps,
|
|
Record<string, any>,
|
|
{ default: {} }
|
|
> {}
|