import { Sizes } from '../../lib/types.ts';
import { Props as CardProps } from '../Card/Card.vue';
export interface ModalProps {
/**
* Controls the visibility of the modal
*/
open?: boolean;
/**
* Controls the width of the modal
*/
size?: Sizes | 'screen';
/**
* Modal wraps a floating card. You can optinally pass in any props you'd pass
* into the component.
*/
card?: CardProps;
/**
* Modal will not overflow the screen, but its card's content will be scrollable instead.
*/
scrollable?: boolean;
/**
* Modal appears in the center of the screen
*/
centered?: boolean;
/**
* Wether modal can be closed by pressing Escape or by clicking the backdrop. If you want to disable the "X" close button, combine this setting with `hideCloseButton`.
*/
canDismiss?: boolean;
/**
* Hides the X button in the top right of the modal. The modal can still be closed by other means.
*/
hideCloseButton?: boolean;
/**
* By default, elements with transition already use a default fade transition. This can be replaced by a custom vue transition class name.
*
* Setting the value to `none` will not apply any transition. This is useful when using the View Transitions API to prevent conflicts between the default animation and the view transition.
*/
transitionName?: string | 'none';
/**
* On mobile, the modal automatically becomes fullscreen. You can configure this
* breakpoint by setting a custom `vuiBreakpoints` mobile variable. This
* setting disables the default behavior.
*/
disableMobileFs?: boolean;
}
declare var __VLS_31: {
close: () => void;
}, __VLS_48: {
close: () => void;
}, __VLS_51: {
close: () => void;
};
type __VLS_Slots = {} & {
header?: (props: typeof __VLS_31) => any;
} & {
default?: (props: typeof __VLS_48) => any;
} & {
footer?: (props: typeof __VLS_51) => any;
};
declare const __VLS_base: import('vue').DefineComponent any;
}, string, import('vue').PublicProps, Readonly & Readonly<{
onClose?: (() => any) | undefined;
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
declare const __VLS_export: __VLS_WithSlots;
declare const _default: typeof __VLS_export;
export default _default;
type __VLS_WithSlots = T & {
new (): {
$slots: S;
};
};