Initial commit
This commit is contained in:
commit
b344a74a72
45 changed files with 1232 additions and 0 deletions
15
components/Input.tsx
Normal file
15
components/Input.tsx
Normal file
|
@ -0,0 +1,15 @@
|
|||
import React, { InputHTMLAttributes } from "react";
|
||||
|
||||
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export function Input({ id, ...props }: InputProps) {
|
||||
return (
|
||||
<label style={{ display: "block" }}>
|
||||
<span style={{ fontSize: "0.91em" }}>{id}</span>
|
||||
<br />
|
||||
<input id={id} size={20} {...props}></input>
|
||||
</label>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue