@@ -56,21 +56,20 @@ return (
56
56
57
57
## Properties
58
58
59
- | Prop | Type | Description | Default |
60
- | ----------------------------- | ---------------------------------------------- | ----------------------------------------------------------- | ------------------------------- |
61
- | ` badgeText ` | ` string ` | Determines the text inside the rendered Badge | |
62
- | ` darkMode ` | ` boolean ` | Determines if the component will render in dark mode | ` false ` |
63
- | ` disabled ` | ` boolean ` | Determines whether the user can interact with the InputBar | ` false ` |
64
- | ` disableSend ` | ` boolean ` | When defined as ` true ` , disables the send action and button | |
65
- | ` loadingMessage ` | ` ReactNode ` | Custom loading message to display when ` state='loading' ` | ` MongoDB Assistant is thinking ` |
66
- | ` errorMessage ` | ` ReactNode ` | Custom error message to display when ` state='error' ` | |
67
- | ` onMessageSend ` | ` (messageBody: string, e?: FormEvent) => void ` | Submit event handler. | |
68
- | ` shouldRenderGradient ` | ` boolean ` | Toggles the gradient animation around the input | ` true ` |
69
- | ` shouldRenderHotkeyIndicator ` | ` boolean ` | Toggles the hotkey indicator on the right side of the input | ` false ` |
70
- | ` textareaProps ` | ` TextareaAutosizeProps ` | Props passed to the TextareaAutosize component. | |
71
- | ` textareaRef ` | ` RefObject<HTMLTextAreaElement> ` | Ref object to access the textarea element directly | |
72
- | ` state ` | ` 'unset' \| 'error' \| 'loading' ` | The current state of the InputBar. | |
73
- | ` ... ` | ` HTMLElementProps<'form'> ` | Props spread on the root element | |
59
+ | Prop | Type | Description | Default |
60
+ | ----------------------------- | ---------------------------------------------- | ----------------------------------------------------------- | ------- |
61
+ | ` badgeText ` | ` string ` | Determines the text inside the rendered Badge | |
62
+ | ` darkMode ` | ` boolean ` | Determines if the component will render in dark mode | ` false ` |
63
+ | ` disabled ` | ` boolean ` | Determines whether the user can interact with the InputBar | ` false ` |
64
+ | ` disableSend ` | ` boolean ` | When defined as ` true ` , disables the send action and button | |
65
+ | ` errorMessage ` | ` ReactNode ` | Custom error message to display when ` state='error' ` | |
66
+ | ` onMessageSend ` | ` (messageBody: string, e?: FormEvent) => void ` | Submit event handler. | |
67
+ | ` shouldRenderGradient ` | ` boolean ` | Toggles the gradient animation around the input | ` true ` |
68
+ | ` shouldRenderHotkeyIndicator ` | ` boolean ` | Toggles the hotkey indicator on the right side of the input | ` false ` |
69
+ | ` textareaProps ` | ` TextareaAutosizeProps ` | Props passed to the TextareaAutosize component. | |
70
+ | ` textareaRef ` | ` RefObject<HTMLTextAreaElement> ` | Ref object to access the textarea element directly | |
71
+ | ` state ` | ` 'unset' \| 'error' \| 'loading' ` | The current state of the InputBar. | |
72
+ | ` ... ` | ` HTMLElementProps<'form'> ` | Props spread on the root element | |
74
73
75
74
## TextareaAutosizeProps
76
75
0 commit comments