This preset is optimized for chat/message composition.
Use SimpleEditor when you need compact input, send actions, and controlled output payloads.
visual-only, visual.submitOnEnter: Sends content on Enter key.allowShiftEnter: Keeps Shift+Enter as line break when submitOnEnter is enabled.onSend: Callback that receives markdown/json payload based on outputFormat.outputFormat: Chooses md or json as payload.text.featureFlags: Scoped overrides for SimpleEditor; currently supports featureFlags.codeIntelligence.<SimpleEditor
featureFlags={{ codeIntelligence: true }}
/>import '@lyfie/luthor/styles.css';
import { SimpleEditor } from '@lyfie/luthor';
export function App() {
return (
<SimpleEditor
submitOnEnter
outputFormat="md"
onSend={(payload) => console.log(payload.markdown)}
/>
);
}