diff --git a/fakemui/react/components/email/inputs/BodyEditor.tsx b/fakemui/react/components/email/inputs/BodyEditor.tsx new file mode 100644 index 000000000..eb82da112 --- /dev/null +++ b/fakemui/react/components/email/inputs/BodyEditor.tsx @@ -0,0 +1,50 @@ +// fakemui/react/components/email/inputs/BodyEditor.tsx +import React, { forwardRef } from 'react' +import { Box } from '../../layout/Box' +import { useAccessible } from '../../../../src/utils/useAccessible' + +export interface BodyEditorProps extends React.TextareaHTMLAttributes { + mode?: 'plain' | 'html' + onModeChange?: (mode: 'plain' | 'html') => void + testId?: string +} + +export const BodyEditor = forwardRef( + ({ mode = 'plain', onModeChange, testId: customTestId, ...props }, ref) => { + const accessible = useAccessible({ + feature: 'email', + component: 'body-editor', + identifier: customTestId || 'body' + }) + + return ( + +
+ + +
+