carbon-components-svelte
Version:
Svelte implementation of the Carbon Design System
34 lines (27 loc) • 810 B
TypeScript
import { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type $RestProps = SvelteHTMLElements["div"];
type $Props = {
/**
* Specify the size of the search menu.
* @default "xl"
*/
size?: "xs" | "sm" | "lg" | "xl";
/**
* Specify the number of skeleton menu items to render
* @default 4
*/
count?: number;
[key: `data-${string}`]: unknown;
};
export type SearchMenuSkeletonProps = Omit<$RestProps, keyof $Props> & $Props;
export default class SearchMenuSkeleton extends SvelteComponentTyped<
SearchMenuSkeletonProps,
{
click: WindowEventMap["click"];
mouseenter: WindowEventMap["mouseenter"];
mouseleave: WindowEventMap["mouseleave"];
mouseover: WindowEventMap["mouseover"];
},
Record<string, never>
> {}