UNPKG

@xzar90/react-router-hash-link

Version:

Hash link scroll functionality for React Router v6

11 lines (10 loc) 314 B
import React from 'react'; export interface IHashLinkBaseProps { onClick?: (...args: any[]) => void | Promise<void>; children: React.ReactNode; scroll?: (...args: any[]) => void | Promise<void>; smooth?: boolean; timeout?: number; elementId?: string; to: string | Location; }