UNPKG

carbon-components-svelte

Version:
31 lines (23 loc) 694 B
import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Set to `true` if the modal contains form elements * @default false */ hasForm?: boolean; /** * Set to `true` if the modal contains scrolling content * @default false */ hasScrollingContent?: boolean; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type ModalBodyProps = Omit<$RestProps, keyof $Props> & $Props; export default class ModalBody extends SvelteComponentTyped< ModalBodyProps, Record<string, any>, { default: Record<string, never> } > {}