Luthor
DocumentationDemoPlaygroundGitHub
Luthor

A headless, extensible rich text editor built on Lexical. Ship faster with production-ready defaults and TypeScript-first APIs.

Documentation

IntroductionInstallation@lyfie/headless@lyfie/luthor

Resources

DemoPlaygroundGitHubnpm Package

Support the Project

Buy me a coffeeStar on GitHub

Built with love by developers for developers.

DocsGitHubllms.txtllms-full.txt
  1. Home
  2. Docs
  3. Luthor
  4. Presets
  5. Notes Editor

Luthor Documentation

Getting Started

  • Introduction
  • Installation
  • @lyfie/headless
  • @lyfie/luthor

@lyfie/headless

  • Features
  • Typography and Text
  • Structure and Lists
  • Media and Embeds
  • Code and Devtools
  • Interaction and Productivity
  • Customization and Theming

@lyfie/luthor

  • Presets
  • Extensive
  • Simple Text
  • Rich Text
  • Chat Window
  • Email Compose
  • Markdown
  • Notion Like
  • Headless Preset
  • Notes

Notes

Notes-style preset with title and action controls.

Usage

tsx
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) | false
  • title: '' (default) | string
  • onTitleChange: undefined (default) | (value: string) => void
  • showActions: true (default) | false
  • onPin: undefined (default) | () => void
  • onArchive: undefined (default) | () => void
  • onColorChange: undefined (default) | (color: string) => void
  • colorOptions: ['#fef3c7', '#dbeafe', '#dcfce7'] (default) | readonly string[]

Behavior

Toolbar is disabled by preset default and feature set is tuned for lightweight note taking.

Previous: Headless Preset