Gathering detailed insights and metrics for @reactour/popover
Gathering detailed insights and metrics for @reactour/popover
Gathering detailed insights and metrics for @reactour/popover
Gathering detailed insights and metrics for @reactour/popover
npm install @reactour/popover
Typescript
Module System
Node Version
NPM Version
Leaving emotions…
Updated on Aug 12, 2022
Adding new step props: observables + highlight selectors
Updated on Jun 15, 2020
disableFocusLock + roundedMask
Updated on Apr 07, 2020
Custom Helper
Updated on Jan 18, 2019
Add close function into step
Updated on Dec 19, 2018
v1.10.0
Updated on Dec 18, 2018
TypeScript (66.41%)
MDX (16.74%)
JavaScript (14.65%)
CSS (2.2%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3,951 Stars
777 Commits
355 Forks
22 Watchers
4 Branches
47 Contributors
Updated on Jul 08, 2025
Latest Version
1.2.0
Package Id
@reactour/popover@1.2.0
Unpacked Size
22.10 kB
Size
5.55 kB
File Count
8
NPM Version
10.5.2
Node Version
20.13.1
Published on
Jun 20, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
A popover positioned based on certain values
https://docs.react.tours/popover
1npm i -S @reactour/popover 2# or 3yarn add @reacmask/popover
1import { Popover } from '@reactour/popover' 2 3function App() { 4 const sizes = { 5 bottom: 0, 6 left: 0, 7 } 8 9 return ( 10 <> 11 {/* ... */} 12 <Popover sizes={sizes}> 13 </> 14 ) 15}
Popover
sizes: RectResult
1type RectResult = { 2 width?: number 3 height?: number 4 top?: number 5 left?: number 6 bottom?: number 7 right?: number 8}
Object containing size and position informations of where to position the Popover
position?: Position
1type Position = 2 | 'top' 3 | 'right' 4 | 'bottom' 5 | 'left' 6 | 'center' 7 | [number, number] 8 | ((postionsProps: PositionProps, prevRect: RectResult) => Position) 9 10type PositionProps = { 11 bottom: number 12 height: number 13 left: number 14 right: number 15 top: number 16 width: number 17 windowWidth: number 18 windowHeight: number 19}
The position for the Popover, fixed in case of [number, number]
, calculated prefered position in case of string
padding?: number | number[]
Extra space to add in Popover position calculations. Useful when calculating space from Element
bounding rect and want to add more space.
Single number sets same space for all sides, otherwise an Array sets [x, y]
or [top, x, bottom]
or [top, right, bottom, left]
.
styles?: StylesObj
Prop to customize styles for the different parts of the Mask using a function that allows to extend the base styles an take advantage of some state props.
className?: string
Class to apply to the Popover
key | props |
---|---|
popover | position , verticalAlign , horizontalAlign , helperRect , targetRect |
refresher?: any
Any value that if changed, updates rect calculations
1const styles = { 2 popover: (base) => ({ 3 ...base, 4 boxShadow: '0 0 3em rgba(0, 0, 0, 0.5)', 5 backgroundColor: '#dedede', 6 }), 7}
No vulnerabilities found.
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
10 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
3 existing vulnerabilities detected
Details
Reason
Found 3/27 approved changesets -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More