UNPKG

@progress/kendo-react-conversational-ui

Version:

React Chat component allows the user to participate in chat sessions with users or chat bots. KendoReact Conversational UI components

9 lines (8 loc) 939 B
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),d=require("@progress/kendo-react-buttons"),r=require("@progress/kendo-svg-icons"),i=n=>{const[e,c]=t.useState(!0),{children:a,title:o}=n;return t.createElement("div",{className:"k-prompt-expander"},t.createElement(d.Button,{"aria-controls":n.id,fillMode:"flat",svgIcon:e?r.chevronUpIcon:r.chevronDownIcon,title:o,onClick:()=>c(!e),"aria-expanded":e},o),e&&t.createElement("div",{id:n.id,className:"k-prompt-expander-content"},a))};exports.AIPromptExpander=i;