mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-02-12 01:34:42 +01:00
contact search and new amount editor
This commit is contained in:
committed by
Tony Giorgio
parent
077ccb2a63
commit
bc2fbf9b2f
24
src/components/SimpleInput.tsx
Normal file
24
src/components/SimpleInput.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { JSX } from "solid-js";
|
||||
|
||||
type SimpleInputProps = {
|
||||
type?: "text" | "email" | "tel" | "password" | "url" | "date";
|
||||
placeholder?: string;
|
||||
value: string | undefined;
|
||||
disabled?: boolean;
|
||||
onInput: JSX.EventHandler<
|
||||
HTMLInputElement | HTMLTextAreaElement,
|
||||
InputEvent
|
||||
>;
|
||||
};
|
||||
|
||||
export function SimpleInput(props: SimpleInputProps) {
|
||||
return (
|
||||
<input
|
||||
class="w-full rounded-lg bg-m-grey-750 p-2 placeholder-m-grey-400 disabled:text-m-grey-400"
|
||||
type="text"
|
||||
value={props.value}
|
||||
onInput={(e) => props.onInput(e)}
|
||||
placeholder={props.placeholder}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user