@promptbook/legacy-documents
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
27 lines (26 loc) • 778 B
TypeScript
import type { string_book } from '../../book-2.0/agent-source/string_book';
export interface BookEditorProps {
/**
* Additional CSS classes to apply to the editor container.
*/
className?: string;
/**
* CSS className for a font (e.g. from next/font) to style the editor text.
* If omitted, defaults to system fonts.
*/
fontClassName?: string;
/**
* The book which is being edited.
*/
value?: string_book;
/**
* Callback function to handle changes in the book content.
*/
onChange?: (value: string_book) => void;
}
/**
* Renders a book editor
*
* @public exported from `@promptbook/components`
*/
export declare function BookEditor(props: BookEditorProps): import("react/jsx-runtime").JSX.Element;