LiftDesign System
Beta
한국어 Get started
  1. Components
  2. Product
  3. Select

Components / Product

Select — Implementation

Pick one from a list

Context
Product
Content
source-derived
Availability
implemented
Verification
static-only 2026-11-18
Source revision
Lift 1.2.3 94b913fa4209…
Source language
KO·EN · not translated

Supported environment

The Lift 1.2.3 reference implementation is a React 18 function component with inline styles referencing Product tokens (hsl(var(--*))), so styles.product.css must be loaded. The mapping to an npm package could not be verified in this repository.

API

Copied from SelectProps in components/_types.d.ts.

proptypedefaultdoc
size"sm" | "md" | "lg"md
disabledbooleanfalse
invalidbooleanfalse
optionsArray<string | { value: string; label: string }>[]
valuestring—
onChange(e: any) => void—
placeholderstring—
styleReact.CSSProperties—

Other props pass through from Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size">.

Code

One import line plus the example code from the usage note.

jsx · import
import { Select } from "./components/forms/Select.jsx";
jsx · Select.prompt.md
<Select options={["solar-pro3", "solar-mini"]} placeholder="Choose a model" value={m} onChange={e => setM(e.target.value)} />

Token bindings

Tokens the implementation references with var(). Names assembled at runtime (e.g. --state-${tone}-fg) are not listed.

--background, --destructive, --disabled, --focus-ring-width, --font-sans, --foreground, --input, --input-active, --input-focus-ring-width, --muted-foreground, --placeholder, --ring, --text-c1

Source