UNPKG

@react-three/p2

Version:

2D physics based hooks for react-three-fiber

4 lines (3 loc) 393 B
import type { ComponentType, PropsWithChildren } from 'react'; export declare const useToggledComponent: <P extends {}>(ToggledComponent: ComponentType<P>, toggle: boolean) => (props: PropsWithChildren<P>) => JSX.Element | null; export declare const useToggledControl: <P extends {}>(ToggledComponent: ComponentType<P>, keycode: string) => (props: PropsWithChildren<P>) => JSX.Element | null;