mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
24 lines
514 B
TypeScript
24 lines
514 B
TypeScript
import { Box, Textarea } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
export const MarkdownEditor = (props: {
|
|
placeholder: string;
|
|
markdown: string;
|
|
onChange: (p: any) => any;
|
|
}) => {
|
|
return (
|
|
<Box>
|
|
<Textarea
|
|
value={props.markdown}
|
|
placeholder={props.placeholder}
|
|
onChange={e => props.onChange(e.target.value)}
|
|
width="100%"
|
|
minHeight="150px"
|
|
height="100%"
|
|
resize="none"
|
|
borderColor="text.accent"
|
|
/>
|
|
</Box>
|
|
);
|
|
};
|