mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
27 lines
680 B
TypeScript
27 lines
680 B
TypeScript
import type { SvelteComponentTyped } from "svelte";
|
|
import type { SvelteHTMLElements } from "svelte/elements";
|
|
|
|
type $RestProps = SvelteHTMLElements["div"];
|
|
|
|
type $Props = {
|
|
/**
|
|
* Set the type of code snippet
|
|
* @default "single"
|
|
*/
|
|
type?: "single" | "multi";
|
|
|
|
[key: `data-${string}`]: any;
|
|
};
|
|
|
|
export type CodeSnippetSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
|
|
|
|
export default class CodeSnippetSkeleton extends SvelteComponentTyped<
|
|
CodeSnippetSkeletonProps,
|
|
{
|
|
click: WindowEventMap["click"];
|
|
mouseover: WindowEventMap["mouseover"];
|
|
mouseenter: WindowEventMap["mouseenter"];
|
|
mouseleave: WindowEventMap["mouseleave"];
|
|
},
|
|
{}
|
|
> {}
|