feat: base form
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import { Box, FormLabel, TextareaAutosize, TextField } from "@mui/material";
|
||||
import { DatePicker } from "@mui/x-date-pickers";
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
|
||||
export const Route = createFileRoute("/add/")({
|
||||
component: RouteComponent,
|
||||
});
|
||||
|
||||
function RouteComponent() {
|
||||
return (
|
||||
<Box
|
||||
component="form"
|
||||
sx={{
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
"& > :not(style)": { m: 1, width: "25ch" },
|
||||
}}
|
||||
noValidate
|
||||
autoComplete="off"
|
||||
>
|
||||
<TextField label="Title"></TextField>
|
||||
<FormLabel>Text:</FormLabel>
|
||||
<TextareaAutosize minRows={6}></TextareaAutosize>
|
||||
<DatePicker />
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user