Scan your whole stack
Are you using @xsolla/xui-color-picker?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.237.0
@xsolla/xui-color-picker was last scanned on 25 Nov 2026 at version 0.237.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.237.0 LATEST | 25 Nov 2026 | No rules fired |
| 0.236.0 | 25 Nov 2026 | No rules fired |
| 0.235.0 | 25 Nov 2026 | No rules fired |
| 0.234.0 | 23 Nov 2026 | Not shown |
| 0.233.0 | 20 Nov 2026 | Not shown |
Findings for v0.237.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.237.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A cross-platform React color picker component with a visual selection area, format switching, and color value controls.
A compound component that lets users select a colour through a combination of a gradient canvas, hue and alpha sliders, a numeric input bar, and an optional eyedropper. Supports four colour formats and an optional alpha channel. Designed to be embedded in a popover, modal, or panel triggered by a colour swatch button.
Browser support for the EyeDropper API must be checked at runtime. When unsupported, hide the button entirely (Eyedropper=False) rather than showing a disabled control with no explanation.
npm install @xsolla/xui-color-picker
import * as React from "react";
import { ColorPicker } from "@xsolla/xui-color-picker";
export default function BasicColorPicker() {
const [color, setColor] = React.useState("#66E6FFFF");
return (
<ColorPicker
value={color}
onChange={({ valueInInitialFormat }) => setColor(valueInInitialFormat)}
/>
);
}
import * as React from "react";
import { ColorPicker } from "@xsolla/xui-color-picker";
export default function NoAlpha() {
return <ColorPicker value="#FF5733" alpha={false} onChange={console.log} />;
}
import * as React from "react";
import { ColorPicker } from "@xsolla/xui-color-picker";
export default function WithEyedropper() {
return <ColorPicker value="#3498DB" eyedropper onChange={console.log} />;
}
import { ColorPicker } from "@xsolla/xui-color-picker";
<ColorPicker
value="#66E6FFFF" // Initial color value
colorFormat="hex" // Default format (hex, rgb, hsl, hsb)
alpha={true} // Show alpha slider
eyedropper={false} // Show eyedropper button
selectableFormats={["hex", "hsl", "rgb", "hsb"]} // Available formats
onChange={handleChange} // Change callback
bottomContent={<Custom />} // Custom content below controls
/>;
import * as React from "react";
import { ColorPicker } from "@xsolla/xui-color-picker";
export default function CustomFormats() {
return (
<ColorPicker
value="#FF0000"
colorFormat="rgb"
selectableFormats={["rgb", "hex"]}
onChange={({ valueInCurrentFormat, currentColorFormat }) => {
console.log(`${currentColorFormat}: ${valueInCurrentFormat}`);
}}
/>
);
}
import * as React from "react";
import { ColorPicker } from "@xsolla/xui-color-picker";
import { Button } from "@xsolla/xui-button";
export default function WithBottomContent() {
const [color, setColor] = React.useState("#66E6FFFF");
return (
<ColorPicker
value={color}
onChange={({ valueInInitialFormat }) => setColor(valueInInitialFormat)}
bottomContent={
<Button size="sm" onPress={() => console.log("Applied:", color)}>
Apply Color
</Button>
}
/>
);
}
import * as React from "react";
import { ColorPicker } from "@xsolla/xui-color-picker";
export default function ControlledPicker() {
const [color, setColor] = React.useState("#9B59B6FF");
const handleChange = ({
valueInInitialFormat,
valueInCurrentFormat,
currentColorFormat,
}) => {
console.log("Format:", currentColorFormat);
console.log("Current format value:", valueInCurrentFormat);
console.log("Initial format value:", valueInInitialFormat);
setColor(valueInInitialFormat);
};
return (
<div>
<p>Selected: {color}</p>
<ColorPicker value={color} onChange={handleChange} />
</div>
);
}
ColorPickerProps:
| Prop | Type | Default | Description |
|---|---|---|---|
testID |
string |
— | Test ID for testing frameworks. On web this renders as data-testid; on React Native it renders as testID. |
| value | string |
"#66E6FFFF" |
Color value in any supported format. |
| colorFormat | "hex" \| "rgb" \| "hsl" \| "hsb" |
"hex" |
Default color format for output. |
| alpha | boolean |
true |
Show alpha channel slider. |
| eyedropper | boolean |
false |
Show eyedropper tool (web only). |
| selectableFormats | Array<"hex" \| "rgb" \| "hsl" \| "hsb"> |
All formats | Available formats in dropdown. |
| copiedIcon | ReactNode |
- | Custom icon for copied state. |
| bottomContent | ReactNode |
- | Custom content below color controls. |
| onChange | (result: ColorChangeResult) => void |
- | Callback when color changes. |
| testID | string |
- | Test identifier. |
ColorChangeResult:
interface ColorChangeResult {
valueInInitialFormat: string; // Color in original format
valueInCurrentFormat: string; // Color in selected format
currentColorFormat: "hex" | "rgb" | "hsl" | "hsb";
}
| Format | Example | With Alpha |
|---|---|---|
| hex | #FF5733 |
#FF5733FF |
| rgb | rgb(255, 87, 51) |
rgba(255, 87, 51, 1) |
| hsl | hsl(11, 100%, 60%) |
hsla(11, 100%, 60%, 1) |
| hsb | hsb(11, 80%, 100%) |
hsba(11, 80%, 100%, 1) |
layer/float colour token (theme.colors.layer.float) rather than a page-level background/* token. This keeps it visually lifted off the page in both light and dark mode.theme.shape.contextMenu.lg.borderRadius so the panel matches the other overlay surfaces.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.