@crossed/ui
Version:
A universal & performant styling library for React Native, Next.js & React
32 lines • 1.01 kB
TypeScript
/**
* 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.
*/
export type FloatingContext = {
open: boolean;
onClose: () => void;
onOpen: () => void;
visibilityHidden?: boolean;
closeOverlayPress?: boolean;
wait?: number;
removeScroll: boolean;
};
export declare const FloatingProvider: (props: FloatingContext & {
children: React.ReactNode;
}) => import("react/jsx-runtime").JSX.Element, useFloatingContext: () => FloatingContext;
type TriggerType = 'onPress' | 'onPointerEnter';
export type FloatingConfig = {
triggerStrategy: TriggerType;
/**
* If false, disable behavior
*/
enabled?: boolean;
portal: boolean;
};
export declare const FloatingConfigProvider: (props: FloatingConfig & {
children: React.ReactNode;
}) => import("react/jsx-runtime").JSX.Element, useFloatingConfig: () => FloatingConfig;
export {};
//# sourceMappingURL=context.d.ts.map