carbon-components-svelte
Version:
Svelte implementation of the Carbon Design System
22 lines (16 loc) • 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: {} }
> {}