refactor: add Select (Dropdown) in FormElements
This commit is contained in:
1 parent
9aa5443229
commit
a3cb0616c1
2 files changed
+23
-20
No files matched your search
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user