@gmana/react-go-top
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -1,1 +0,1 @@ | ||
export * from './lib/go-top'; | ||
export { default as GoTop } from './lib/go-top'; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
import './go-top.css'; | ||
@@ -5,3 +6,3 @@ interface GoTopProps { | ||
} | ||
export declare const GoTop: ({ startShow }: GoTopProps) => JSX.Element; | ||
export declare const GoTop: ({ startShow }: GoTopProps) => false | JSX.Element; | ||
export default GoTop; |
{ | ||
"name": "@gmana/react-go-top", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"author": { | ||
@@ -19,3 +19,4 @@ "name": "Sun Sreng", | ||
"react", | ||
"go-top" | ||
"go-top", | ||
"nextjs" | ||
], | ||
@@ -26,7 +27,7 @@ "publishConfig": { | ||
"peerDependencies": { | ||
"react": ">=16" | ||
"react": "^16.8.0 || ^17 || ^18" | ||
}, | ||
"main": "./go-top.umd.js", | ||
"module": "./go-top.esm.js", | ||
"main": "./index.umd.js", | ||
"module": "./index.esm.js", | ||
"typings": "./index.d.ts" | ||
} |
# React Go Top | ||
> a tiny go top component | ||
## Install | ||
- `npm i @gmana/react-go-top` | ||
or | ||
- `yarn add @gmana/react-go-top` | ||
```bash | ||
npm i @gmana/react-go-top or | ||
yarn add @gmana/react-go-top | ||
``` | ||
## Usage | ||
```tsx | ||
```bash | ||
import { GoTop } from '@gmana/react-go-top'; | ||
import '@gmana/react-go-top/go-top.esm.css'; | ||
``` | ||
```tsx | ||
<GoTop /> | ||
@@ -21,7 +20,5 @@ // or | ||
``` | ||
## API | ||
| Property | Default | | ||
| --------- | :-----: | | ||
| startShow | 0 | | ||
| :-------- | :-----: | | ||
| startShow | 0 | |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
111579
2777
23
3