UNPKG

@carbon/react

Version:

React components for the Carbon Design System

46 lines (45 loc) 1.57 kB
/** * Copyright IBM Corp. 2024, 2025 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React, { type ComponentType, type FunctionComponent } from 'react'; export type ChatButtonKind = 'primary' | 'secondary' | 'danger' | 'ghost' | 'tertiary'; export type ChatButtonSize = 'sm' | 'md' | 'lg'; export interface ChatButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> { /** * Provide the contents of your Select */ children?: React.ReactNode; /** * Specify an optional className to be applied to the node containing the label and the select box */ className?: string; /** * Specify whether the `ChatButton` should be disabled */ disabled?: boolean; /** * Specify whether the `ChatButton` should be rendered as a quick action button */ isQuickAction?: boolean; /** * Specify whether the quick action `ChatButton` should be rendered as selected. This disables the input */ isSelected?: boolean; /** * Specify the kind of `ChatButton` you want to create */ kind?: ChatButtonKind; /** * A component used to render an icon. */ renderIcon?: ComponentType | FunctionComponent; /** * Specify the size of the `ChatButton`, from the following list of sizes: */ size?: ChatButtonSize; } declare const ChatButton: React.ForwardRefExoticComponent<ChatButtonProps & React.RefAttributes<HTMLButtonElement>>; export default ChatButton;