39 lines
1.2 KiB
React
39 lines
1.2 KiB
React
import React from "react";
|
|||
|
|
import EmailTextField from "../../components/TextFields/Email/EmailTextField";
|
||
|
|
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
|
||
|
|
import HelpOutlineIcon from "@mui/icons-material/HelpOutline";
|
||
|
|
|
||
|
|
// This Component is just for the development and test
|
||
|
|
// purposes and just to see what my components look like while development
|
||
|
|
// and will be removed in the end
|
||
|
|
function PlayGround() {
|
||
|
|
return (
|
||
|
|
<div>
|
||
|
|
{/* Default state of Email Text Fields */}
|
||
|
|
<EmailTextField
|
||
|
|
error={false}
|
||
|
|
placeholder="olivia@untitledui.com"
|
||
|
|
id="outlined-basic"
|
||
|
|
helperText="This is a hint text to help user."
|
||
|
|
/>
|
||
|
|
{/* Email Text Field when validation error occures */}
|
||
|
|
<EmailTextField
|
||
|
|
error={true}
|
||
|
|
placeholder="olivia@untitledui.com"
|
||
|
|
id="outlined-basic"
|
||
|
|
icon={<ErrorOutlineIcon style={{ fill: "red" }} />}
|
||
|
|
helperText="This is an error message"
|
||
|
|
/>
|
||
|
|
{/* Email Text Field while mouse hover */}
|
||
|
|
<EmailTextField
|
||
|
|
error={false}
|
||
|
|
placeholder="olivia@untitledui.com"
|
||
|
|
id="outlined-basic"
|
||
|
|
icon={<HelpOutlineIcon />}
|
||
|
|
helperText="This is a hint text to help user."
|
||
|
|
/>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
export default PlayGround;
|