refactor: summarized components in FormElements

This commit is contained in:
robin committed 2026-07-25 18:50:55 +02:00
1 parent b97e5ea7bb
commit 9aa5443229
3 files changed
+21 -11

No files matched your search

@@ -3,14 +3,24 @@ import { ComponentPropsWithoutRef } from "react";
interface TextfieldProps extends ComponentPropsWithoutRef<"input"> {}
export default function Textfield({value, onChange, placeholder}: TextfieldProps) {
function Textfield({value, onChange, placeholder}: TextfieldProps) {
return (
<input
type="text"
placeholder="Nach Songtitel oder Nummer suchen..."
className="w-full border border-neutral-700 rounded-lg px-4 py-2.5 placeholder-neutral-500 focus:outline-none focus:border-blue-400 text-sm"
value={value}
onChange={onChange}
placeholder={placeholder}
/>
)
}
}
function Dropdown() {
return (
<p></p>
)
}
export const Input = {
Text: Textfield,
Select: Dropdown,
};