UNPKG

@crossed/primitive

Version:

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

30 lines 1.98 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 type { ComponentType, PropsWithChildren } from 'react'; import type { PressableProps } from 'react-native'; export { useContext as useSheetContext } from './context'; export declare const createSheet: <RootProps extends Record<string, any>, TriggerProps extends Record<string, any>, ContentProps extends Record<string, any>, PortalProps extends Record<string, any>, OverlayProps extends Record<string, any>, HandleProps extends PressableProps>(components: { Root: ComponentType<RootProps>; Trigger: ComponentType<TriggerProps>; Content: ComponentType<ContentProps>; Portal: ComponentType<PropsWithChildren<PortalProps>>; Overlay: ComponentType<OverlayProps>; Handle: ComponentType<HandleProps>; }) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<RootProps & { open?: boolean; defaultOpen?: boolean; onChangeOpen?: (_open: boolean) => void; }> & import("react").RefAttributes<any>> & { Trigger: import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<import("..").RequiredAccessibilityProps<TriggerProps, "aria-label">> & import("react").RefAttributes<any>>; Content: import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<ContentProps> & import("react").RefAttributes<any>>; Portal: import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<PortalProps & { children?: import("react").ReactNode | undefined; }> & import("react").RefAttributes<any>>; Overlay: import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<OverlayProps> & import("react").RefAttributes<any>>; Handle: import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<HandleProps> & import("react").RefAttributes<any>>; }; //# sourceMappingURL=index.d.ts.map