🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@tsproxy/react

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsproxy/react

Headless React components for tsproxy with BaseUI-style overrides

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

@tsproxy/react

Headless React components for tsproxy with a BaseUI-style overrides pattern.

This project is in early release — APIs are stabilizing.

Install

npm install @tsproxy/react @tsproxy/js react-instantsearch

Usage

import { SearchProvider, SearchBox, Hits, RefinementList, Pagination, Stats } from "@tsproxy/react";
import { Configure } from "react-instantsearch";

export default function SearchPage() {
  return (
    <SearchProvider serverUrl="http://localhost:3000" indexName="products">
      <Configure hitsPerPage={12} />
      <SearchBox placeholder="Search..." />
      <Stats />
      <RefinementList attribute="category" />
      <Hits hitComponent={({ hit }) => <div>{hit.name}</div>} />
      <Pagination />
    </SearchProvider>
  );
}

Overrides

Every component accepts an overrides prop to customize any sub-element:

<SearchBox
  overrides={{
    Input: { props: { className: "rounded-full border px-4 py-2" } },
    SubmitButton: { props: { hidden: true } },
    ResetButton: { component: MyResetButton },
  }}
/>

Components

ComponentSub-elements
SearchBoxRoot, Form, Input, SubmitButton, ResetButton
HitsRoot, List, Item
RefinementListRoot, List, Item, Label, Checkbox, LabelText, Count
PaginationRoot, List, Item, Link
StatsRoot, Text
SortByRoot, Select, Option
NoResultsRoot, Title, Message
HitsSkeletonRoot, List, Item
LocaleSelectorRoot, Select, Option
SearchProvider— (wraps InstantSearch)

Documentation

tsproxy.akshit.io

License

MIT

Keywords

typesense

FAQs

Package last updated on 15 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts