Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-color-modal
Advanced tools
react-color-modal is yet another color picker component for React.
react-color-modal は React 用の軽量なカラーパレットです。
Simply install the npm package and start using it. TypeScript definitions are available by default. (e.g., index.d.ts)
npm install
でインストールできます。 TypeScript の型定義がついてきます。
npm i react-color-modal
import { useState } from "react";
import { ColorPanel } from "react-color-modal";
export const Body = () => {
// tinycolor instance
const [color, setColor] = useState(null);
// render a color panel with simple status indicator
return (
<>
<ColorPanel onColorUpdate={setColor} />
{color && (
<p>
Selected color:{" "}
<span style={{ backgroundColor: color.toHexString() }} />{" "}
<code>{color.toHexString()}</code>
</p>
)}
</>
);
};
All of the exported classes and interfaces are listed in TypeDoc.
このモジュールが export しているすべてのクラスとインタフェースは TypeDoc で閲覧できます。
We have developed this extension in collaboration with the core developers of Fabric.js and relevant information can be found in their issue tracker.
Twitter @ArchResearchJp で連絡がつきます。
Copyright (c) 2020-2022 Arch Inc. (Jun Kato)
FAQs
Yet another color picker component for React
We found that react-color-modal 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.