carbon-components-svelte/types/Button/ButtonSkeleton.svelte.d.ts
Enrico Sacchetti a581231d16 chore: adjust types
- Fix ButtonSkeleton sizes
- Apply v11 `size` props
2024-01-19 16:30:40 -05:00

33 lines
810 B
TypeScript

import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["a"];
export interface ButtonSkeletonProps extends RestProps {
/**
* Set the `href` to use an anchor link
* @default undefined
*/
href?: string;
/**
* Specify the size of button skeleton
* @default "lg"
*/
size?: "sm" | "md" | "lg" | "xl" | "2xl";
[key: `data-${string}`]: any;
}
export default class ButtonSkeleton extends SvelteComponentTyped<
ButtonSkeletonProps,
{
click: WindowEventMap["click"];
focus: WindowEventMap["focus"];
blur: WindowEventMap["blur"];
mouseover: WindowEventMap["mouseover"];
mouseenter: WindowEventMap["mouseenter"];
mouseleave: WindowEventMap["mouseleave"];
},
{}
> {}