@progress/kendo-angular-conversational-ui
Version:
Kendo UI for Angular Conversational UI components
67 lines (66 loc) • 2.16 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { ButtonFillMode, ButtonRounded, ButtonSize, ButtonThemeColor } from '@progress/kendo-angular-buttons';
import { SVGIcon } from '@progress/kendo-svg-icons';
/**
* Defines the configuration settings for the PromptBox Action button.
*/
export interface ActionButtonSettings {
/**
* Sets the disabled state of the **Action** button.
*/
disabled?: boolean;
/**
* Sets the background and border styles of the **Action** button.
*/
fillMode?: ButtonFillMode;
/**
* Sets the border radius of the **Action** button.
*/
rounded?: ButtonRounded;
/**
* Sets the padding of the **Action** button.
*/
size?: ButtonSize;
/**
* Sets the theme color of the **Action** button.
*/
themeColor?: ButtonThemeColor;
/**
* Sets the icon of the **Action** button.
*/
icon?: string;
/**
* Sets the SVG icon of the **Action** button.
*/
svgIcon?: SVGIcon;
/**
* Sets a CSS class or multiple classes separated by spaces.
* Applied to a `span` element inside the **Action** button.
*/
iconClass?: string;
/**
* Sets a URL for an `img` element displayed inside the **Action** button.
*/
imageUrl?: string;
/**
* Sets a CSS class or multiple classes separated by spaces on the **Action** button.
*/
buttonClass?: string;
/**
* Sets the icon displayed when the **Action** button is in loading state.
*/
loadingIcon?: string;
/**
* Sets the SVG icon to be displayed when the **Action** button is in loading state.
*/
loadingSVGIcon?: SVGIcon;
}
/**
* Defines the event data emitted when the PromptBox **Action** button is clicked.
*/
export interface ActionButtonEvent {
actionType: 'send' | 'stop';
}