tencent cloud

Chat

Search

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-08-26 16:06:20

Component Overview

Search is a complete search solution with a full set of components, including search bar, result display, advanced search, and other features. It is suitable for user, group, and message search in instant messaging, online meeting, and online education scenarios.
Note:
Note: This feature belongs to VAS. You need to purchase cloud search plugin. Please click purchase.


Search Mode

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













Props

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

Basic Usage

import { Search, VariantType } from '@tencentcloud/chat-uikit-react';

function App() {
return (
<Search variant={VariantType.MINI} />
);
}

FAQs

How to Customize the Search Result Display Format

A: The search component does not support customization; however, you can use SearchStore to implement your own search component.


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백