rg / webui /src /components /ui /Select.tsx
xjackkx's picture
Upload 307 files
ea775bd verified
Raw History Blame Contribute Delete
394 Bytes
import type { SelectHTMLAttributes } from "react";
import { cn } from "../../lib/cn";
type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
invalid?: boolean;
};
export function Select({ className, invalid, children, ...props }: SelectProps) {
return (
<select className={cn("select", invalid && "input-invalid", className)} {...props}>
{children}
</select>
);
}