Skip to content

Select

Category: Forms & inputs

<Select label="Country" defaultSelectedKey="kr">
<Option id="kr">Korea</Option>
<Option id="jp">Japan</Option>
<Option id="us">United States</Option>
</Select>

Install: @helix-ui/core

import { Select, Option } from '@helix-ui/core';

status: stable · since: 0.1.0

Tags: picker, dropdown, single-value

[ Selected value ▾ ]
╭──── popover ───╮
│ • Option A │
│ • Option B ✓ │
│ • Option C │
╰────────────────╯
  • display — block
  • width — fill
  • height — content
  • intrinsicSize — fills width, hugs height
  • stackable — false
  • fullBleed — false

A trigger button styled like a TextInput with a trailing chevron. On open, a popover listbox appears anchored to the trigger; selected option is checkmarked.

Name Type Default Description
label ReactNode — Visible label.
description ReactNode — Helper text.
errorMessage string | (v: ValidationResult) => string — Error text.
placeholder string Select… Shown when nothing is selected.
size 'sm' | 'md' | 'lg' md Trigger height.
selectedKey Key | null — Controlled selected option.
defaultSelectedKey Key — Uncontrolled initial.
onSelectionChange (key: Key) => void — Selection change handler.
  • children — Option components

color.bg.surface.default, color.bg.action.neutral.default, color.bg.action.brand.subtle, color.border.default, color.border.focus, color.text.primary, color.text.secondary, color.text.muted, color.text.action.brand, color.text.action.danger, radius.md, space.1, space.2, space.3, font.family.sans, font.size.sm, font.size.md, font.size.lg, font.weight.medium, shadow.md

Role: combobox

Keyboard

Key Action
ArrowDown Open / move down.
Enter Select highlighted option.
Escape Close.
Component Relation Note
Field wraps Built-in label/description/error.
Form parent Submitted as part of a Form.
MultiSelect alternative MultiSelect for multiple values.

These are the AI prompt → JSX mappings used by the helix-ui prompt DSL and integrations like Cursor / Claude Code.

“select with three options”

<Select label="Country" selectedKey={country} onSelectionChange={setCountry}>
<Option id="us">United States</Option>
<Option id="kr">Korea</Option>
<Option id="jp">Japan</Option>
</Select>