From a6508e655079b6cd2a69ac6c02397c9e32ed015d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Jun 2026 21:20:27 +0000 Subject: [PATCH 1/2] feat: Add Select component for form inputs - Add Select component with Select.Option compound sub-component - Support placeholder, error message, disabled, fullWidth, size (sm/md/lg) - Reuse component-input tokens for visual consistency with Input - Forward ref to native ` element and optional error message. +- **Select**: The native ` + GPT-4 + GPT-3.5 Turbo + Claude 3 + + + ); +} +``` + +## Props + +### Select + +| Prop | Type | Default | Description | +| ------------- | --------------------------- | ----------- | ------------------------------------------------------------------ | +| `onChange` | `(value: string) => void` | `undefined` | Callback fired when the selected value changes. | +| `placeholder` | `string` | `undefined` | Placeholder text shown as a disabled empty option. | +| `error` | `string` | `undefined` | Error message. Applies error styling and displays the message. | +| `disabled` | `boolean` | `false` | Disables interaction and applies disabled styling. | +| `fullWidth` | `boolean` | `false` | Stretches the select to 100% of container width. | +| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Size variant. | +| `className` | `string` | `undefined` | Additional CSS classes applied to the select element. | +| `...props` | `SelectHTMLAttributes` | - | All standard select attributes (value, defaultValue, name, etc.). | + +### Select.Option + +| Prop | Type | Default | Description | +| ---------- | -------- | ----------- | ------------------------------------------ | +| `value` | `string` | - | The option value. | +| `...props` | `OptionHTMLAttributes` | - | All standard option attributes. | + +## Accessibility + +- Always associate a `