UNPKG

carbon-components-svelte

Version:
46 lines (37 loc) 1.01 kB
import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["ul"]; type $Props = { /** * Specify the number of accordion items to render * @default 4 */ count?: number; /** * Specify alignment of accordion item chevron icon. * @default "end" */ align?: "start" | "end"; /** * Specify the size of the accordion. * @default undefined */ size?: "sm" | "xl"; /** * Set to `false` to close the first accordion item * @default true */ open?: boolean; [key: `data-${string}`]: unknown; }; export type AccordionSkeletonProps = Omit<$RestProps, keyof $Props> & $Props; export default class AccordionSkeleton extends SvelteComponentTyped< AccordionSkeletonProps, { click: WindowEventMap["click"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, Record<string, never> > {}