UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

19 lines (18 loc) 1.2 kB
import React from 'react'; import type { ChannelSearchControllerParams } from './hooks/useChannelSearch'; import type { AdditionalSearchBarProps, SearchBarProps } from './SearchBar'; import type { AdditionalSearchInputProps, SearchInputProps } from './SearchInput'; import type { AdditionalSearchResultsProps } from './SearchResults'; export type AdditionalChannelSearchProps = { /** Custom UI component to display the search bar with text input */ SearchBar?: React.ComponentType<SearchBarProps>; /** Custom UI component to display the search text input */ SearchInput?: React.ComponentType<SearchInputProps>; }; export type ChannelSearchProps = AdditionalSearchBarProps & AdditionalSearchInputProps & AdditionalSearchResultsProps & AdditionalChannelSearchProps & ChannelSearchControllerParams; /** * The ChannelSearch component makes a query users call and displays the results in a list. * Clicking on a list item will navigate you into a channel with the selected user. It can be used * on its own or added to the ChannelList component by setting the `showChannelSearch` prop to true. */ export declare const ChannelSearch: (props: ChannelSearchProps) => React.JSX.Element;