diff --git a/frontend/src/components/BackstoryTextField.tsx b/frontend/src/components/BackstoryTextField.tsx index 2841ff7..0a16a4a 100644 --- a/frontend/src/components/BackstoryTextField.tsx +++ b/frontend/src/components/BackstoryTextField.tsx @@ -6,8 +6,9 @@ import React, { useState, useImperativeHandle, } from 'react'; -import { useTheme } from '@mui/material/styles'; +import { SxProps, useTheme } from '@mui/material/styles'; import './BackstoryTextField.css'; +import { Box } from '@mui/material'; // Define ref interface for exposed methods interface BackstoryTextFieldRef { @@ -23,11 +24,12 @@ interface BackstoryTextFieldProps { onEnter?: (value: string) => void; onChange?: (value: string) => void; style?: CSSProperties; + sx?: SxProps; } const BackstoryTextField = React.forwardRef( (props, ref) => { - const { value = '', disabled = false, placeholder, onEnter, onChange, style } = props; + const { value = '', disabled = false, placeholder, onEnter, onChange, style, sx } = props; const theme = useTheme(); const textareaRef = useRef(null); const shadowRef = useRef(null); @@ -115,7 +117,7 @@ const BackstoryTextField = React.forwardRef +