New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-smoothy-scroll

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-smoothy-scroll

my own npm package smooth scroll in reactjs

latest
Source
npmnpm
Version
0.9.3
Version published
Maintainers
1
Created
Source

react-smoothy-scroll

NPM version

Smooth scrolling for React.js with easy to use component(Not supported in React Native)

Installation

With Yarn
 yarn add react-smoothy-scroll
With NPM
npm i react-smoothy-scroll

Basic Usage

import SmoothScroll from "react-smoothy-scroll";

<SmoothScroll toId="navbar" duration={1500} allowScroll={true}>
	<p>Scroll To Navbar</p>
</SmoothScroll>;

Properties

PropDefaultTypeDescription
toIdundefinedstringtarget id for smooth scrolling
toRefnullRefObjecttarget ref object for smooth scrolling
duration1000numberduration of the smooth scroll
childrenundefinedReactNodereact children
allowScrolltrueboolif false scrolling will be disabled

Inspired by Filip Kubík

Keywords

react

FAQs

Package last updated on 09 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts