UNPKG

cdbreact

Version:

Elegant UI Kit and reusable components for building mobile-first, responsive webistes and web apps

33 lines (32 loc) 920 B
import React from "react"; import PropTypes from "prop-types"; interface Props { className?: string; to?: string; smooth?: boolean; spy?: boolean; offset?: number; duration?: number; activeClass?: string; children?: React.ReactNode; } declare const SmoothScroll: { (props: Props): JSX.Element; defaultProps: { offset: number; duration: number; smooth: boolean; spy: boolean; }; propTypes: { className: PropTypes.Requireable<string>; to: PropTypes.Requireable<string>; smooth: PropTypes.Requireable<boolean>; spy: PropTypes.Requireable<boolean>; offset: PropTypes.Requireable<number>; duration: PropTypes.Requireable<number>; activeClass: PropTypes.Requireable<string>; }; }; export default SmoothScroll; export { SmoothScroll as CDBSmoothScroll };