UNPKG

carbon-components-svelte

Version:
46 lines (38 loc) 1.04 kB
import { SvelteComponentTyped } from "svelte"; import type { AccordionSkeletonProps } from "./AccordionSkeleton.svelte"; export type CarbonAccordionContext = { disableItems: import("svelte/store").Writable<boolean>; }; export type AccordionProps = AccordionSkeletonProps & { /** * 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 `true` to disable the accordion * @default false */ disabled?: boolean; /** * Set to `true` to display the skeleton state * @default false */ skeleton?: boolean; children?: (this: void) => void; }; export default class Accordion extends SvelteComponentTyped< AccordionProps, { click: WindowEventMap["click"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, { default: Record<string, never> } > {}