Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gmana/react-go-top

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gmana/react-go-top - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

go-top.esm.js
import React, { useState } from 'react';
var styles = {"goTop":"go-top-module_goTop__1oPbC","fadeIn":"go-top-module_fadeIn__3vXZ0"};
var styles = {"gmanaGoTop":"go-top-module_gmanaGoTop__LCD0E","fadeIn":"go-top-module_fadeIn__3vXZ0"};

@@ -30,3 +30,3 @@ var GoTop = function GoTop(_a) {

return show && React.createElement("div", {
className: styles.goTop,
className: styles.gmanaGoTop,
onClick: scrollTop

@@ -33,0 +33,0 @@ }, React.createElement("svg", {

@@ -9,3 +9,3 @@ (function (global, factory) {

var styles = {"goTop":"go-top-module_goTop__1oPbC","fadeIn":"go-top-module_fadeIn__3vXZ0"};
var styles = {"gmanaGoTop":"go-top-module_gmanaGoTop__LCD0E","fadeIn":"go-top-module_fadeIn__3vXZ0"};

@@ -37,3 +37,3 @@ var GoTop = function GoTop(_a) {

return show && React__default.createElement("div", {
className: styles.goTop,
className: styles.gmanaGoTop,
onClick: scrollTop

@@ -40,0 +40,0 @@ }, React__default.createElement("svg", {

{
"name": "@gmana/react-go-top",
"version": "0.0.2",
"version": "0.0.3",
"author": {

@@ -5,0 +5,0 @@ "name": "Sun Sreng",

@@ -1,18 +0,26 @@

# react-go-top
# React Go Top
> a tiny go top component
## Install
- `npm i @gmana/react-go-top`
or
- `yarn add @gmana/react-go-top`
## Usage
```tsx
import React from 'react';
import './app.css';
import { GoTop } from '@gmana/go-top';
import '@gmana/react-go-top/go-top.esm.css';
export const App = () => (
<>
<h1>Home Pages</h1>
<GoTop />
// <GoTop startShow={10} />
</>
);
<GoTop />
// or
<GoTop startShow={10} />
```
export default App;
```
## API
| Property | Default |
| --------- | :-----: |
| startShow | 0 |

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc