
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@uiw/react-color-chrome
Advanced tools
Chrome Component is a subcomponent of @react-color
.
npm i @uiw/react-color-chrome
import React, { useState } from 'react';
import Chrome from '@uiw/react-color-chrome';
import { GithubPlacement } from '@uiw/react-color-github';
function Demo() {
const [hex, setHex] = useState("#d29c9c53");
return (
<>
<Chrome
color={hex}
style={{ float: 'left' }}
placement={GithubPlacement.Right}
onChange={(color) => {
setHex(color.hexa);
}}
/>
<Chrome
color={hex}
placement={GithubPlacement.TopRight}
onChange={(color) => {
setHex(color.hexa);
}}
/>
<div style={{ background: hex, marginTop: 30, padding: 10 }}>
{hex}
</div>
</>
);
}
export default Demo;
import React from 'react';
import { GithubProps } from '@uiw/react-color-github';
export declare enum ChromeInputType {
HEXA = 'hexa',
RGBA = 'rgba',
HSLA = 'hsla',
}
export interface ChromeProps extends Omit<GithubProps, 'colors'> {
inputType?: ChromeInputType;
}
export declare enum GithubPlacement {
Left = "L",
LeftTop = "LT",
LeftBotton = "LB",
Right = "R",
RightTop = "RT",
RightBotton = "RB",
Top = "T",
TopRight = "TR",
TopLeft = "TL",
Botton = "B",
BottonLeft = "BL",
BottonRight = "BR"
}
Licensed under the MIT License.
FAQs
Color Github Picker
We found that @uiw/react-color-chrome demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.