PromptBoxPropsPremium
Represents the props of the PromptBox component.
| Name | Type | Default | Description |
|---|---|---|---|
actionButtonConfig? |
|
|
Sets the send button visibility and/or settings. tsx
|
attachments? |
|
Sets the attachments for controlled file management. When provided, the component operates in controlled mode and the developer must manage attachments via onSelectAttachments and onRemoveAttachment. When not provided, the component manages attachments internally (uncontrolled mode). | |
defaultValue? |
|
The default value of the PromptBox (uncontrolled mode). tsx
| |
disabled? |
|
|
Sets the disabled state of the PromptBox component. tsx
|
endAffix? |
|
Custom content rendered at the end of the input element. In 'multi' and 'auto' with more than one row, it is rendered at the bottom right of the textarea. Custom content appears BEFORE built-in buttons. tsx
| |
fillMode? |
|
|
Configures the The available options are:
tsx
|
inputAttributes? |
|
Sets the HTML attributes of the inner focusable input element. Attributes which are essential for certain component functionalities cannot be changed. tsx
| |
loading? |
|
|
Specifies whether the Send button is transformed to a stop generation button. tsx
|
maxLength? |
|
Sets the maximum number of characters allowed in the text input element. tsx
| |
maxTextAreaHeight? |
|
Sets the maximum height of the native textarea in px.
When the text height exceeds this value, a scrollbar appears.
Applicable for tsx
| |
mode? |
|
|
Sets the line mode for the PromptBox component. The available options are:
tsx
|
onBlur? |
|
The event handler that will be fired when the PromptBox is blurred. tsx
| |
onChange? |
|
The event handler that will be fired when the value changes. tsx
| |
onFocus? |
|
The event handler that will be fired when the PromptBox is focused. tsx
| |
onPromptAction? |
|
Fires when the user clicks the Action button. The event provides the current value and attachments, allowing simple uncontrolled usage. tsx
| |
placeholder? |
|
|
The hint, which is displayed when the text input element is empty. tsx
|
readOnly? |
|
|
Sets the read-only state of the PromptBox component. tsx
|
rows? |
|
|
Sets the visible height of the internal textarea in lines. Only applicable when mode is 'multi'. This sets the minimum number of rows. tsx
|
speechToTextButtonConfig? |
|
|
Sets the SpeechToText button visibility and/or settings. tsx
|
startAffix? |
|
Custom content rendered at the start of the input element in single line mode. In 'multi' and 'auto' with more than one row, it is rendered at the bottom left of the textarea. tsx
| |
title? |
|
|
Sets the title attribute of the internal text input element of the component. tsx
|
topAffix? |
|
Custom content rendered at the top of the PromptBox. Only rendered when mode is 'multi' or when 'auto' mode has more than 1 row. tsx
| |
uploadButtonConfig? |
|
|
Sets the File Attachments button visibility and/or settings. tsx
|
value? |
|
|
Sets the value for the internal input/textarea of the PromptBox. tsx
|