Notes
Notes-style preset with title and action controls.
Usage
import { NotesEditor } from '@lyfie/luthor';
import '@lyfie/luthor/styles.css';
export function App() {
return (
<NotesEditor
showTitle
title="Sprint Notes"
onTitleChange={(value) => console.log(value)}
onPin={() => console.log('pin')}
onArchive={() => console.log('archive')}
/>
);
}Props
NotesEditorProps inherits ExtensiveEditorProps except featureFlags.
showTitle:true (default) | falsetitle:'' (default) | stringonTitleChange:undefined (default) | (value: string) => voidshowActions:true (default) | falseonPin:undefined (default) | () => voidonArchive:undefined (default) | () => voidonColorChange:undefined (default) | (color: string) => voidcolorOptions:['#fef3c7', '#dbeafe', '#dcfce7'] (default) | readonly string[]
Behavior
Toolbar is disabled by preset default and feature set is tuned for lightweight note taking.
