@chatui/core
Version:
The React library for Chatbot UI
22 lines • 670 B
JavaScript
import React from 'react';
import { Bubble } from '../Bubble';
export function Typing(_ref) {
var text = _ref.text;
return /*#__PURE__*/React.createElement(Bubble, {
type: "typing"
}, /*#__PURE__*/React.createElement("div", {
className: "Typing",
"aria-busy": "true"
}, text && /*#__PURE__*/React.createElement("span", {
className: "Typing-text"
}, text), /*#__PURE__*/React.createElement("div", {
className: "Typing-dot",
"data-i": "0"
}), /*#__PURE__*/React.createElement("div", {
className: "Typing-dot",
"data-i": "1"
}), /*#__PURE__*/React.createElement("div", {
className: "Typing-dot",
"data-i": "2"
})));
}