feat: insert csv columns

This commit is contained in:
Chesterkxng
2025-05-24 02:50:38 +02:00
parent a53dfc7c15
commit a2f63664b0
8 changed files with 539 additions and 3 deletions

View File

@@ -0,0 +1,46 @@
import { Box, TextField, TextFieldProps } from '@mui/material';
import Typography from '@mui/material/Typography';
import React from 'react';
type OwnProps = {
description?: string;
value: string;
onOwnChange: (value: string) => void;
placeholder?: string;
rows?: number;
};
const TextareaWithDesc = ({
description,
value,
onOwnChange,
placeholder,
minRows = 3,
...props
}: TextFieldProps & OwnProps) => {
return (
<Box>
<TextField
multiline
minRows={minRows}
placeholder={placeholder}
value={value}
onChange={(event) => onOwnChange(event.target.value)}
sx={{
backgroundColor: 'background.paper',
'& .MuiInputBase-root': {
overflow: 'hidden' // ✨ Prevent scrollbars
}
}}
{...props}
/>
{description && (
<Typography fontSize={12} mt={1}>
{description}
</Typography>
)}
</Box>
);
};
export default TextareaWithDesc;