Skip to content

Commit 51858ec

Browse files
committed
logic implemented
1 parent ec20c40 commit 51858ec

File tree

1 file changed

+10
-2
lines changed
  • src/components/MarkdownGenerator

1 file changed

+10
-2
lines changed

src/components/MarkdownGenerator/Text.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,23 @@ const Text = () => {
66
const [inputVal, setInputVal] = useState("");
77

88
return (
9-
<Grid container>
9+
<Grid container display="flex" justifyContent="space-around">
1010
<Grid item>
1111
<textarea
1212
name="markdownInput"
1313
value={inputVal}
1414
onChange={(e) => setInputVal(e.target.value)}
15+
style={{ width: "400px", height: "600px" }}
1516
/>
1617
</Grid>
17-
<Grid item>
18+
<Grid
19+
item
20+
sx={{
21+
width: "400px",
22+
height: "600px",
23+
lineBreak: "anywhere",
24+
}}
25+
>
1826
<Html children={inputVal} />
1927
</Grid>
2028
</Grid>

0 commit comments

Comments
 (0)