UNPKG

@ssgoi/react

Version:

React bindings for SSGOI - Native app-like page transitions for React applications

16 lines (15 loc) 467 B
import { default as React, ReactNode } from 'react'; import { SsgoiConfig } from './types'; interface SsgoiProps { config: SsgoiConfig; children: ReactNode; /** * Hook to get current pathname (e.g., Next.js usePathname) * @example * import { usePathname } from 'next/navigation'; * <Ssgoi config={config} usePathname={usePathname}> */ usePathname?: () => string; } export declare const Ssgoi: React.FC<SsgoiProps>; export {};