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

Components / Product

Dropdown — Implementation

Action menu

Context
Product
Content
source-derived
Availability
implemented
Verification
static-only 2026-11-18
Source revision
Lift 1.2.3 24dec9955319…
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 DropdownProps in components/_types.d.ts.

proptypedefaultdoc
triggerReact.ReactNode—
itemsDropdownItem[][]
onSelect(id: string, item: DropdownItem) => void—
align"start" | "end"start
restoreFocusbooleantrueRestore trigger focus after selection; false when the consumer manages focus.
styleReact.CSSProperties—

DropdownItem

fieldtypedefaultdoc
idstring—
labelReact.ReactNode—
iconReact.ReactNode—
dangerboolean—
disabledboolean—
separatorboolean—

Code

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

jsx · import
import { Dropdown } from "./components/overlays/Dropdown.jsx";
jsx · Dropdown.prompt.md
<Dropdown trigger="solar-pro3" align="end"
  items={[{id:"pro3",label:"solar-pro3"},{id:"mini",label:"solar-mini"},{separator:true},{id:"stop",label:"배포 중단",danger:true}]}
  onSelect={id => setModel(id)} />

Token bindings

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

--background, --border, --border-subtle, --command-item-selected, --destructive-text, --disabled-foreground, --font-sans, --foreground, --motion-menu-in, --muted-foreground, --popover, --popover-border, --popover-foreground, --shadow-lg, --transition-colors, --transition-transform, --z-popover

Source