import * as React from 'react'; import { cn } from '../utils/cn'; import { ComponentOption } from '../types'; export type SelectOption = ComponentOption; export interface SelectProps extends Omit< React.SelectHTMLAttributes, 'onChange' > { options: SelectOption[]; placeholder?: string; onChange?: (value: string) => void; } const Select = React.forwardRef( ({ className, options, placeholder, onChange, ...props }, ref) => { const handleChange = (e: React.ChangeEvent) => { onChange?.(e.target.value); }; return ( ); } ); Select.displayName = 'Select'; export { Select };