Files
open-gsio/packages/client/src/components/connect/MarkdownEditor.tsx
2025-06-24 17:32:59 -04:00

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>
);
};