10 lines
281 B
TypeScript
10 lines
281 B
TypeScript
import type { SelectHTMLAttributes } from "react";
|
|
|
|
export function Select({ className, children, ...props }: SelectHTMLAttributes<HTMLSelectElement>) {
|
|
return (
|
|
<select className={`input${className ? ` ${className}` : ""}`} {...props}>
|
|
{children}
|
|
</select>
|
|
);
|
|
}
|