| allowRecording | boolean | If true, the voice recording button will be shown. In order to change the language of the transcription functionality, use the localeTag prop from the Halstack Provider, by default if a Halstack Provider is not used, the language will be set to "en-US". | false |
| callbackFile | (files: File[]) => void | This function will be called when the selection of top items changes. If this function is provided the message input will allow file selection. | - |
| defaultValue | string | Initial value of the input, only when it is uncontrolled. | - |
| disabled | boolean | If true, the component will be disabled. | false |
| error | string | If it is a defined value and also a truthy string, the component will change its appearance, showing the error below the input component. If the defined value is an empty string, it will reserve a space below the component for a future error, but it would not change its look. In case of being undefined or null, both the appearance and the space for the error message would not be modified. | - |
| files | File[] | [] | Items to be shown at the top. | - |
| isGenerating | boolean | If true, it indicates that a request is being processed after the user submits a query. | false |
| maxLength | number | Specifies the maximum length allowed by the input. This will be checked both when the input element loses the focus and while typing within it. If the string entered does not comply the maximum length, the onBlur and onChange functions will be called with the current value and an internal error informing that the value length does not comply the specified range. If a valid length is reached, the error parameter of both events will not be defined. | - |
| minLength | number | Specifies the minimum length allowed by the input. This will be checked aboth when the input element loses the focus and while typing within it. If the string entered does not comply the minimum length, the onBlur and onChange functions will be called with the current value and an internal error informing that the value length does not comply the specified range. If a valid length is reached, the error parameter of both events will not be defined. | - |
| selectOptions | {
label?: string;
value: string;
onSelect: (value: string) => void;
selected?: boolean;
}[]
| Options to be shown on the dropdown under the input. | - |
| onBlur | (val: { value: string; error?: string }) => void | This function will be called when the input element loses the focus. An object including the input value and the error (if the value entered is not valid) will be passed to this function. If there is no error, error will not be defined. | - |
| onButtonClick | (val: {
type: "submit" | "stop";
value?: string;
files?: File[];
selectedOption?: SelectOption;
}) => void;
| This function will be called when the user clicks on the button (submit or stop) or presses enter. The type parameter indicates whether it's a 'submit' or 'stop' event. For submit events, 'value', 'files'and 'selectedOption' are provided. | - |
| onChange | (val: { value: string; error?: string }) => void | This function will be called when the user types within the input element of the component. An object including the current value and the error (if the value entered is not valid) will be passed to this function. If there is no error, error will not be defined. | - |
| placeholder | string | Text to be put as placeholder of the input. | - |
| size | 'small' | 'medium' | 'large' | 'fillParent' | Specifies the size of the component. The size will affect the width of the input. | 'medium' |
| tabIndex | number | Value of the tabindex attribute. | - |
| value | string | Value of the input. If undefined, the component will be uncontrolled and the value will be managed internally by the component. | - |