
Research
/Security News
Bitwarden CLI Compromised in Ongoing Checkmarx Supply Chain Campaign
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.
@reactour/mask
Advanced tools
An SVG mask that cover all the window contents except the one specified by certain position and sizes values
npm i -S @reactour/mask
# or
yarn add @reactour/mask
import { Mask } from '@reactour/mask'
function App() {
const sizes = {
width: 100,
height: 100,
top: 100,
left: 100,
}
return (
<>
{/* ... */}
<Mask sizes={sizes} />
</>
)
}
Masksizes: RectResulttype RectResult = {
width: number
height: number
top: number
left: number
bottom?: number
right?: number
}
Object containing size and position informations of where to position the Mask
className?: stringClass to apply to the Mask wrapper
highlightedAreaClassName?: stringClass to apply to the Highlighted area rect
padding?: number | number[]Extra space to add in Mask 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].
wrapperPadding?: number | number[]Extra space to add between viewport with and height.
Single number sets same space for all sides, otherwise an Array sets [x, y] or [top, x, bottom] or [top, right, bottom, left].
onClick?: MouseEventHandler<HTMLDivElement>Click handler for the Mask except the highlighted area.
onClickHighlighted?: MouseEventHandler<SVGRectElement>Click handler for the Highlighted area.
maskId?: stringString to be assigned to the <mask /> element, otherwise an automatic unique id is assigned.
clipId?: stringString to be assigned to the <clipPath /> element, otherwise an automatic unique id is assigned.
styles?: StylesObjProp 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.
| key | props |
|---|---|
maskWrapper | |
maskArea | x, y, width, height |
maskRect | windowWidth, windowHeight, maskID |
clickArea | windowWidth, windowHeight, clipID |
highlightedArea | x, y, width, height |
const styles = {
maskWrapper: (base) => ({
...base,
color: 'red',
}),
highlightedArea: (base, { x, y }) => ({
...base,
x: x + 10,
y: y + 10,
}),
}
FAQs
An SVG mask that cover all the window contents except the one spec
We found that @reactour/mask demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.

Product
Stay on top of alert changes with filtered subscriptions, batched summaries, and notification routing built for triage.