mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
28 lines
640 B
TypeScript
28 lines
640 B
TypeScript
import type { 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;
|
|
|
|
[key: `data-${string}`]: any;
|
|
};
|
|
|
|
export type ModalBodyProps = Omit<$RestProps, keyof $Props> & $Props;
|
|
|
|
export default class ModalBody extends SvelteComponentTyped<
|
|
ModalBodyProps,
|
|
Record<string, any>,
|
|
{ default: {} }
|
|
> {}
|