
Mini Mode | Standard Mode | Embedded Mode |
Suitable for sidebar or small container Display finite number of results Support expand to view more | Suitable for full-screen search UI Feature demonstration Advanced Search Support | Suitable for chat UI Focus on message search Optimized layout |
![]() | ![]() | ![]() |
Attribute Name | Type | Default Value | Description |
variant | VariantType | VariantType.MINI | Search mode: mini, standard, embedded |
className | string | - | Custom style class name |
style | React.CSSProperties | - | custom style |
onKeywordChange | (keyword: string) => void | - | search keyword change callback |
onResultItemClick | (result: object) => void | - | search result click callback |
import { Search, VariantType } from '@tencentcloud/chat-uikit-react';function App() {return (<Search variant={VariantType.MINI} />);}
フィードバック