Components
@search-engine-sdk/react exports SourcingChat and the pieces it is built from. Standalone components render inside SourcingTheme. The host still owns search state, sorting, streaming, and the dialog's drafts, and passes the rows in. SourcingChat keeps its own card list for an embed.
slots replaces a view and keeps the same session. Slot props are Header, Transcript, Message, Progress, QuickReplies, Composer, Filters, Candidates, Empty, and Error.
| Component | |
|---|---|
| SourcingChat | Drop-in sourcing chat. Pass chatId for an existing chat, or leave it empty to create one on the first message. Replace slots to render the same session with your own pieces. |
| SourcingProvider | Provides the SourcingClient to SourcingChat and useSourcingClient(). |
| useSourcingClient | The client from the nearest SourcingProvider. Throws when that provider is missing. |
| SourcingTheme | Sets light, dark, or system colors for any components placed inside. |
| ChatLayout | The chat shell. It sets the theme and lays out the thread and the side. |
| ChatBody | The row that holds the thread and the side. |
| ChatThread | The conversation column. |
| ChatSide | The results column. |
| ChatHeader | The chat title and status. An empty title reads New search. |
| ChatStatus | Ready, Working, or Queued, plus the data source. |
| Transcript | The message log. Shows Earlier messages when older messages are already loaded. |
| LoadEarlier | The button that reveals the previous window of messages. |
| MessageBubble | One transcript row. A generating answer renders ProgressList. A filter update renders a system line. |
| UserMessage | A message from the signed-in user. |
| BotMessage | A message from the assistant. |
| YouNote | The user's line in the workbench transcript. |
| BotNote | The assistant's line, with optional answer buttons. |
| ActionNote | A transcript row with a badge. |
| ThoughtNote | A muted line in the transcript. |
| CopilotEmpty | The empty line in the copilot column. |
| Composer | The message field. Omit value and the field keeps its own draft. |
| PromptLine | The preamble and text above a set of replies. |
| QuickReplies | The prompt and every reply group. Renders nothing when both are empty. |
| ReplyGroup | One question and its options. multi reads Select one or more. Anything else reads Select one. |
| ProgressList | The steps of a turn that is still being written. |
| ProgressStepItem | One titled step inside a progress list. |
| EmptyState | The empty conversation. Loading and the first-search prompt use different copy. |
| ErrorBanner | The alert under the transcript. |
| QueueList | Messages waiting to be sent. Renders nothing when the list is empty. |
| ArchiveThread | The original conversation kept beside an editable search. |
| FilterSummary | The built-in filters view. It summarizes the current requirements. A custom editor calls loadForms() and onSubmit instead. |
| FilterChip | One requirement label. |
| CandidateList | The card list for one page, with a pager when the page is not the whole result. |
| CandidateCard | One person: name, headline, company, location, and up to eight skills. |
| CandidateMeta | The company after the headline. Renders nothing when the candidate has no company. |
| SkillList | A list of skill names. Renders nothing when skills is empty. |
| ReviewButtons | Like and dislike for one candidate. |
| Pager | Previous and next for a candidate page. |
| ResultsBoard | The sortable results table. The host owns sorting and passes the rows in. |
| ProfilePanel | The candidate beside the table. The host passes the profile it already loaded. |
| CriteriaBar | The sentence above the results, with one chip per condition and Adjust. |
| DescribeBox | The home-screen box: a heading, the request, and Search. |
| WorkbenchFrame | The fixed workbench frame: product, tabs, the open request, and sign-out. |
| CopilotFrame | The copilot column: a hint, a scrolling transcript, and a footer. |
| HistoryList | A paged list of saved rows. It defaults to conversations. Pass pendingLabel and listLabel for another list, such as saved searches. |
| SignInCard | The sign-in card. The host owns the form state and passes the field props through. |
| AdjustFrame | The adjust dialog shell. The host fills the header, cards, and footer. |
| RungOption | One radio in an adjust card: the rung name, its description, and the count. |
| PresenceRow | The tags under a request. They stay put; only the highlight moves. |
| PlanMeter | A sliding bar and a short log while a plan is derived. The last lines fade out. |