Scan your whole stack
From OX Research Newsroom
Are you using @xsolla/xui-input-color?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.234.0
@xsolla/xui-input-color was last scanned on 23 Nov 2026 at version 0.234.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.234.0 LATEST | 23 Nov 2026 | No rules fired |
| 0.233.0 | 20 Nov 2026 | No rules fired |
| 0.232.1 | 20 Nov 2026 | No rules fired |
| 0.232.0 | 18 Nov 2026 | Not shown |
| 0.231.0 | 16 Nov 2026 | Not shown |
Findings for v0.234.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.234.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A compact inline control for previewing and editing a colour value — a colour swatch alongside an editable hex or RGB field, with optional transparency (alpha). Use it on its own, or as the inline trigger that opens a ColorPicker. Works on web and React Native via XUIProvider themed contexts.
npm install @xsolla/xui-input-color
import { InputColor } from '@xsolla/xui-input-color';
import type {
InputColorProps,
InputColorType,
InputColorSize,
} from '@xsolla/xui-input-color';
const [color, setColor] = useState('#22A8C3');
<InputColor value={color} onChange={setColor} />;
<InputColor>| Prop | Type | Default | Description |
|---|---|---|---|
value |
string |
— | Controlled colour as a hex string (e.g. #22A8C3; #RRGGBBAA when transparency is on). |
defaultValue |
string |
'#000000' |
Initial value for uncontrolled usage. |
onChange |
(value: string) => void |
— | Change handler; always receives a hex string (8-digit when transparency is on). |
onSwatchClick |
() => void |
— | Fired when the swatch is activated. The swatch is interactive only when type="color" — use it to open a parent ColorPicker. Never called for other types. |
type |
'color' \| 'color-hex' \| 'color-rgb' \| 'hex' \| 'rgb' |
'color-hex' |
Which controls render (see Types). |
transparency |
boolean |
false |
Add an alpha (%) field and a transparency-aware swatch. |
size |
'xl' \| 'lg' \| 'md' \| 'sm' \| 'xs' |
'md' |
Control size. |
label |
string |
— | Visible label shown above the control. |
id |
string |
auto |
HTML id used for accessibility linking. |
aria-label |
string |
— | Accessible name when no visible label is present. |
testID |
string |
— | Test identifier. |
Inherits ThemeOverrideProps (themeMode, themeProductContext).
The canonical value is always a hex string, regardless of type. The hex and RGB fields are alternate editable representations of the same colour; editing either emits an updated hex through onChange.
type |
Shows |
|---|---|
color |
Swatch only — acts as a trigger (onSwatchClick). |
color-hex |
Swatch + hex field. |
color-rgb |
Swatch + R / G / B fields. |
hex |
Hex field only. |
rgb |
R / G / B fields only. |
When transparency is on, an alpha (%) field is appended to every type and color gains it too.
const [color, setColor] = useState('#22A8C3');
<InputColor value={color} onChange={setColor} />;
const [color, setColor] = useState('#22A8C3');
<InputColor type="color-rgb" value={color} onChange={setColor} />;
const [color, setColor] = useState('#22A8C380');
<InputColor type="color-rgb" transparency value={color} onChange={setColor} />;
<InputColor size="xl" defaultValue="#22A8C3" />
<InputColor size="md" defaultValue="#22A8C3" />
<InputColor size="xs" defaultValue="#22A8C3" />
type="color" renders the swatch alone; wire onSwatchClick to open a parent ColorPicker.
const [color, setColor] = useState('#22A8C3');
const [open, setOpen] = useState(false);
<InputColor
type="color"
value={color}
onChange={setColor}
onSwatchClick={() => setOpen(true)}
/>;
const [color, setColor] = useState('#22A8C3');
<InputColor value={color} onChange={setColor} label="Brand color" />;
role="group"; label it with label, aria-label, or an external aria-labelledby target.aria-label — "Hex color value", "Red channel", "Green channel", "Blue channel", "Opacity percentage".type="color" the swatch is a <button aria-label="Open color picker">; for every other type it is a decorative preview marked aria-hidden (not focusable, not clickable).ArrowUp / ArrowDown keys, clamped to their range (0–255, or 0–100 for alpha).role="status" / aria-live="polite" region announces colour changes to screen readers (e.g. "Color updated to #FF0000").Enter, or Tab.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.