import * as React from "react" import { cn } from "@/lib/utils" export interface SelectProps extends React.SelectHTMLAttributes { label?: string error?: string hint?: string options: { value: string | number; label: string }[] } const Select = React.forwardRef( ({ className, label, error, hint, id, options, ...props }, ref) => { const generatedId = React.useId() const selectId = id ?? generatedId return (
{label && ( )} {hint && !error && (

{hint}

)} {error && (

{error}

)}
) } ) Select.displayName = "Select" export { Select }