UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

37 lines (36 loc) 1.25 kB
import type { CSSProperties } from 'react'; import type { MarkdownProps } from "../../Markdown"; import type { MessageInputProps } from "../MessageInput"; import type { MessageModalProps } from "../MessageModal"; export interface EditableMessageProps { className?: string; classNames?: MessageInputProps['classNames'] & { input?: string; markdown?: string; }; defaultValue?: string; editButtonSize?: MessageInputProps['editButtonSize']; editing?: boolean; fontSize?: number; fullFeaturedCodeBlock?: boolean; height?: MessageInputProps['height']; markdownProps?: Omit<MarkdownProps, 'className' | 'style' | 'children'>; model?: { extra?: MessageModalProps['extra']; footer?: MessageModalProps['footer']; }; onChange?: (value: string) => void; onEditingChange?: (editing: boolean) => void; onOpenChange?: (open: boolean) => void; openModal?: boolean; placeholder?: string; showEditWhenEmpty?: boolean; style?: CSSProperties; styles?: MessageInputProps['styles'] & { input?: CSSProperties; markdown?: CSSProperties; }; text?: MessageModalProps['text']; value: string; variant?: MessageInputProps['variant']; }