refactor: add Select (Dropdown) in FormElements

This commit is contained in:
robin committed 2026-07-25 18:57:41 +02:00
1 parent 9aa5443229
commit a3cb0616c1
2 files changed
+23 -20

No files matched your search

+9 -4
View File
@@ -14,10 +14,15 @@ function Textfield({value, onChange, placeholder}: TextfieldProps) {
)
}
function Dropdown() {
return (
<p></p>
)
function Dropdown({ children, ...props }: ComponentPropsWithoutRef<"select">) {
return (
<select
className="w-full border border-neutral-700 rounded-lg px-3 py-2 focus:outline-none focus:border-blue-400 text-sm h-[38px]"
{...props}
>
{children}
</select>
);
}
export const Input = {