@marshal604/react-game-dialogue
Version:
A React UI library for creating dialogue systems with a game-like interface | 一個專為 React 應用開發的對話系統 UI 套件,提供類遊戲風格的對話介面
26 lines (25 loc) • 470 B
TypeScript
import React from 'react';
import { CharacterConfig } from '../types';
interface CharacterProps {
/**
* 角色配置
*/
config: CharacterConfig;
/**
* 情緒/表情
*/
emotion?: string;
/**
* 位置
*/
position?: 'left' | 'right' | 'center';
/**
* 是否活躍(說話中)
*/
active?: boolean;
}
/**
* 角色顯示組件
*/
export declare const Character: React.FC<CharacterProps>;
export {};