import { forwardRef, SelectHTMLAttributes } from 'react'; import { cn } from '@/lib/utils'; interface SelectProps extends SelectHTMLAttributes { label?: string; error?: string; options: { value: string | number; label: string }[]; } export const Select = forwardRef( ({ className, label, error, options, ...props }, ref) => { return (
{label && } {error &&

{error}

}
); } ); Select.displayName = 'Select';