UNPKG

@promptbook/wizard

Version:

Promptbook: Run AI apps in plain human language across multiple models and platforms

29 lines (28 loc) 880 B
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 serif 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 * * 🔥 LIVE COMPONENT TEST: This component is being served live from the playground server! * * @public exported from `@promptbook/components` */ export declare function BookEditor(props: BookEditorProps): import("react/jsx-runtime").JSX.Element;