UNPKG

@crossed/ui

Version:

A universal & performant styling library for React Native, Next.js & React

52 lines 1.83 kB
/** * Copyright (c) Paymium. * * This source code is licensed under the MIT license found in the * LICENSE file in the root of this projects source tree. */ import { PropsWithChildren, RefAttributes } from 'react'; import { FloatingProps, FloatingRef } from '../Floating'; import { VariantSize } from './context'; type ChildWithViariant = PropsWithChildren<Partial<VariantSize>>; export type ModalProps = ChildWithViariant & { /** * Props send to Floating copmponent */ floatingProps?: FloatingProps; /** * Adapt to sheet responsive */ adapt?: boolean; /** * Closable as boolean is a general props preventing the modal from closing when pressing on overlay * and preventing sheet from closing when touching outside sheet or when swiping bottom * as an object it provides greater granularity and allow different behavior on web or mobile */ closable?: boolean | { closeOverlayPress?: boolean; closeOnTouchBackdrop?: boolean; }; }; export declare const ModalRoot: import("react").NamedExoticComponent<Partial<VariantSize> & { children?: import("react").ReactNode | undefined; } & { /** * Props send to Floating copmponent */ floatingProps?: FloatingProps; /** * Adapt to sheet responsive */ adapt?: boolean; /** * Closable as boolean is a general props preventing the modal from closing when pressing on overlay * and preventing sheet from closing when touching outside sheet or when swiping bottom * as an object it provides greater granularity and allow different behavior on web or mobile */ closable?: boolean | { closeOverlayPress?: boolean; closeOnTouchBackdrop?: boolean; }; } & RefAttributes<FloatingRef>>; export {}; //# sourceMappingURL=Root.d.ts.map