Scan your whole stack
Are you using @xsolla/xui-select?
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-select 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 select component for choosing from a list of predefined options with dropdown menu. Works on both React (web) and React Native.
A single-value dropdown input that displays the current selection and opens a ContextMenu panel when clicked. Supports five sizes, an optional leading icon, a clear button, and an icon-only mode. The dropdown panel is powered by ContextMenu — see its documentation for option list composition, search, and behaviour.
Icon choice — use a left icon that represents the category being selected, not a generic dropdown indicator. The chevron already signals "this opens a list."
The left icon must have aria-hidden="true" when a label is also visible.
npm install @xsolla/xui-select
import * as React from "react";
import { Select } from "@xsolla/xui-select";
export default function BasicSelect() {
const [value, setValue] = React.useState("");
return (
<Select
value={value}
onChange={setValue}
options={["Option 1", "Option 2", "Option 3"]}
placeholder="Select an option"
/>
);
}
import * as React from "react";
import { Select } from "@xsolla/xui-select";
export default function LabeledSelect() {
const [country, setCountry] = React.useState("");
return (
<Select
label="Country"
value={country}
onChange={setCountry}
options={[
"United States",
"Canada",
"United Kingdom",
"Germany",
"France",
]}
placeholder="Select a country"
/>
);
}
import * as React from "react";
import { Select } from "@xsolla/xui-select";
export default function ObjectOptionsSelect() {
const [status, setStatus] = React.useState("");
const options = [
{ label: "Active", value: "active" },
{ label: "Pending", value: "pending" },
{ label: "Inactive", value: "inactive" },
];
return (
<Select
label="Status"
value={status}
onChange={setStatus}
options={options}
placeholder="Select status"
/>
);
}
import * as React from "react";
import { Select } from "@xsolla/xui-select";
export default function SelectSizes() {
const options = ["Small", "Medium", "Large"];
return (
<div style={{ display: "flex", flexDirection: "column", gap: 16 }}>
<Select size="xs" options={options} placeholder="Extra Small" />
<Select size="sm" options={options} placeholder="Small" />
<Select size="md" options={options} placeholder="Medium (default)" />
<Select size="lg" options={options} placeholder="Large" />
<Select size="xl" options={options} placeholder="Extra Large" />
</div>
);
}
import * as React from "react";
import { Select } from "@xsolla/xui-select";
import { Globe } from "@xsolla/xui-icons-base";
export default function SelectWithIcons() {
return (
<Select
iconLeft={<Globe />}
options={["English", "Spanish", "French", "German"]}
placeholder="Select language"
/>
);
}
Import the component and use it directly:
import { Select } from "@xsolla/xui-select";
<Select
label="Field Label" // Optional label above select
value={value} // Controlled selected value
onChange={setValue} // Value change handler
options={["A", "B", "C"]} // Array of options (strings or objects)
placeholder="Select..." // Placeholder text
iconLeft={<Icon />} // Optional left icon
iconRight={<Icon />} // Optional right icon (default: ChevronDown)
filled // Whether to show filled background
state="error" // State: "default" | "disable" | "error"
errorMessage="Error message" // Error message (shown when state="error")
/>;
import * as React from "react";
import { Select } from "@xsolla/xui-select";
export default function ErrorSelect() {
return (
<Select
label="Required Field"
state="error"
errorMessage="Please select an option"
options={["Option 1", "Option 2", "Option 3"]}
placeholder="Select an option"
/>
);
}
import * as React from "react";
import { Select } from "@xsolla/xui-select";
export default function DisabledSelect() {
return (
<Select
label="Disabled Field"
value="Option 1"
state="disable"
options={["Option 1", "Option 2", "Option 3"]}
/>
);
}
import * as React from "react";
import { Select } from "@xsolla/xui-select";
export default function UnfilledSelect() {
return (
<Select
filled={false}
options={["Option 1", "Option 2", "Option 3"]}
placeholder="Transparent background"
/>
);
}
The field fill follows the Figma field frame in every size and theme
(XUITSD-140):
| State | Field fill | Applies when filled={false} |
|---|---|---|
| Default | control.input.bg |
No — the field is transparent |
| Hover | control.input.bgHover |
Yes |
| Focus | control.focus.bg |
Yes |
| Error | control.input.bg |
Yes |
| Disable | control.disable.bg |
Yes |
Disable wins over Error and Focus.
import * as React from "react";
import { Select } from "@xsolla/xui-select";
import { Settings } from "@xsolla/xui-icons";
export default function IconOnlySelect() {
return (
<Select
iconOnly
iconLeft={<Settings />}
options={["Settings", "Preferences", "Advanced"]}
/>
);
}
import * as React from "react";
import { Select } from "@xsolla/xui-select";
export default function FullWidthSelect() {
return (
<div style={{ display: "flex", gap: 16 }}>
<Select
fullWidth
options={["Option 1", "Option 2", "Option 3"]}
placeholder="Stretches to fill container"
/>
<Select
fullWidth={false}
options={["Option 1", "Option 2", "Option 3"]}
placeholder="Intrinsic width"
/>
</div>
);
}
By default the dropdown popover matches the trigger width. Use popoverWidth to
size the popover independently — handy when option labels are wider than the
field. Pass a number (pixels) or any CSS width string.
import * as React from "react";
import { Select } from "@xsolla/xui-select";
export default function CustomPopoverWidth() {
return (
<div style={{ width: 200 }}>
<Select
popoverWidth={320}
options={[
"Account overview and billing details",
"Subscription management",
"Payment history and transactions",
]}
placeholder="Custom popover width"
/>
</div>
);
}
import * as React from "react";
import { Select } from "@xsolla/xui-select";
import { Input } from "@xsolla/xui-input";
import { Button } from "@xsolla/xui-button";
export default function FormWithSelect() {
const [form, setForm] = React.useState({
name: "",
category: "",
priority: "",
});
return (
<div
style={{ display: "flex", flexDirection: "column", gap: 16, width: 300 }}
>
<Input
label="Task Name"
value={form.name}
onChangeText={(name) => setForm((prev) => ({ ...prev, name }))}
placeholder="Enter task name"
/>
<Select
label="Category"
value={form.category}
onChange={(category) => setForm((prev) => ({ ...prev, category }))}
options={["Development", "Design", "Marketing", "Sales"]}
placeholder="Select category"
/>
<Select
label="Priority"
value={form.priority}
onChange={(priority) => setForm((prev) => ({ ...prev, priority }))}
options={[
{ label: "High", value: "high" },
{ label: "Medium", value: "medium" },
{ label: "Low", value: "low" },
]}
placeholder="Select priority"
/>
<Button>Create Task</Button>
</div>
);
}
By default the dropdown always opens on the side (default "bottom"). Pass autoFlip to let it flip to the opposite side when there isn't enough viewport space.
import * as React from "react";
import { Select } from "@xsolla/xui-select";
const options = ["Option 1", "Option 2", "Option 3"];
// Always opens below (default — no surprises for existing layouts)
<Select options={options} placeholder="Default" />
// Always opens above
<Select side="top" options={options} placeholder="Opens above" />
// Opens below, flips above when near the bottom of the viewport
<Select autoFlip options={options} placeholder="Auto-flip enabled" />
// Opens above, flips below when near the top of the viewport
<Select side="top" autoFlip options={options} placeholder="Prefers top, flips if needed" />
The dropdown closes when the page scrolls. On web, the options list contains its
own scroll (overscroll-behavior: contain). When the user scrolls to the end of
the list and keeps scrolling, the page behind it does not scroll, so the
dropdown stays open. No prop is needed.
The main select component. Renders a button trigger with dropdown menu.
Select Props:
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.