import { forwardRef, type SelectHTMLAttributes } from 'react' import { cn } from '@/lib/cn' import { fieldControlClass, useFieldId } from './field' interface SelectProps extends SelectHTMLAttributes { label: string options: { value: string; label: string }[] } export const Select = forwardRef(function Select( { label, options, id, name, className, ...props }, ref, ) { const fieldId = useFieldId(id, name) return (
) })