@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
29 lines (28 loc) • 1.07 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import t from "react";
import { Button as c } from "@progress/kendo-react-buttons";
import { chevronUpIcon as d, chevronDownIcon as i } from "@progress/kendo-svg-icons";
const s = (n) => {
const [e, r] = t.useState(!0), { children: a, title: o } = n;
return /* @__PURE__ */ t.createElement("div", { className: "k-prompt-expander" }, /* @__PURE__ */ t.createElement(
c,
{
"aria-controls": n.id,
fillMode: "flat",
svgIcon: e ? d : i,
title: o,
onClick: () => r(!e),
"aria-expanded": e
},
o
), e && /* @__PURE__ */ t.createElement("div", { id: n.id, className: "k-prompt-expander-content" }, a));
};
export {
s as AIPromptExpander
};