@@ -34,7 +34,8 @@ import {
3434 Icon ,
3535 MenuProps , // Remove in next breaking change
3636 TitleProps ,
37- ListProps
37+ ListProps ,
38+ SearchInputProps
3839} from '@patternfly/react-core' ;
3940
4041import { OutlinedClockIcon , OutlinedCommentAltIcon , PenToSquareIcon } from '@patternfly/react-icons' ;
@@ -94,6 +95,8 @@ export interface ChatbotConversationHistoryNavProps extends DrawerProps {
9495 searchInputPlaceholder ?: string ;
9596 /** Aria label for search input */
9697 searchInputAriaLabel ?: string ;
98+ /** Additional props passed to search input */
99+ searchInputProps ?: SearchInputProps ;
97100 /** A callback for when the input value changes. Omit to hide input field */
98101 handleTextInputChange ?: ( value : string ) => void ;
99102 /** Display mode of chatbot */
@@ -149,6 +152,7 @@ export const ChatbotConversationHistoryNav: FunctionComponent<ChatbotConversatio
149152 newChatButtonProps,
150153 searchInputPlaceholder = 'Search previous conversations...' ,
151154 searchInputAriaLabel = 'Filter menu items' ,
155+ searchInputProps,
152156 handleTextInputChange,
153157 displayMode,
154158 reverseButtonOrder = false ,
@@ -292,6 +296,7 @@ export const ChatbotConversationHistoryNav: FunctionComponent<ChatbotConversatio
292296 aria-label = { searchInputAriaLabel }
293297 onChange = { ( _event , value ) => handleTextInputChange ( value ) }
294298 placeholder = { searchInputPlaceholder }
299+ { ...searchInputProps }
295300 />
296301 </ div >
297302 ) }
0 commit comments