@marshal604/react-game-dialogue
Version:
A React UI library for creating dialogue systems with a game-like interface | 一個專為 React 應用開發的對話系統 UI 套件,提供類遊戲風格的對話介面
37 lines (36 loc) • 627 B
TypeScript
import React from 'react';
interface DialogBoxProps {
/**
* 角色名稱
*/
name?: string;
/**
* 對話文本
*/
text: string;
/**
* 文字顏色
*/
textColor?: string;
/**
* 是否顯示打字效果
*/
isTyping?: boolean;
/**
* 打字速度(毫秒/字符)
*/
typingSpeed?: number;
/**
* 打字完成的回調
*/
onTypingComplete?: () => void;
/**
* 點擊下一步的回調
*/
onNext?: () => void;
}
/**
* 對話框組件
*/
export declare const DialogBox: React.FC<DialogBoxProps>;
export {};