@gmana/react-go-top
Advanced tools
Comparing version 0.0.2 to 0.0.3
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5542
27