Chat Window
Chat composer style preset with send and action controls.
Usage
import { ChatWindowEditor } from '@lyfie/luthor';
import '@lyfie/luthor/styles.css';
export function App() {
return (
<ChatWindowEditor
onSend={({ jsonb }) => console.log(jsonb)}
submitOnEnter
allowShiftEnter
/>
);
}Props
ChatWindowEditorProps inherits ExtensiveEditorProps except featureFlags and isToolbarEnabled.
onSend:undefined (default) | (payload: { jsonb: string }) => voidsubmitOnEnter:true (default) | falseallowShiftEnter:true (default) | falseshowVoiceButton:false (default) | trueshowImageButton:true (default) | falseshowSendButton:true (default) | false
Behavior
- Toolbar is disabled by preset defaults
- Visual mode only
- Enter-to-send behavior is configurable
