Book Editor

A simple textarea component optimized for book and long-form content editing with clean Tailwind styling.

textareaeditorforminputbookwriting
v0.100.1
Promptbook Team

Live Preview

Features

  • Clean, focused writing interface
  • Controlled and uncontrolled modes
  • Responsive design
  • Accessible keyboard navigation
  • Optimized for long-form content

Usage Examples

Basic Usage

<BookEditor />

With Custom CSS Classes

<BookEditor value={book} onChange={setBook} className="border-2 border-blue-500" />

Quick Actions

Technical Details

Category

Editor

Dependencies

react: ^18.0.0 || ^19.0.0
@promptbook/components: 0.100.1

Props

className
string
Additional CSS classes to apply to the textarea
Default: ""
value
PipelineString
The book which is being edited (controlled value)
onChange
(value: PipelineString) => void
Callback function to handle changes in the book content
Promptbook Components Gallery