Skip to content

outpostHQ/searchjs

Repository files navigation

Search.js

Search.js is a fast, composable React and Web components.

Table of Contents

Install React Component

# with npm
npm install @searchjs/react

# with yarn
yarn add @searchjs/react

# with pnpm
pnpm add @searchjs/react

Install Web Component

# with npm
npm install @searchjs/web

# with yarn
yarn add @searchjs/web

# with pnpm
pnpm add @searchjs/web

Anatomy

<SearchDialog>
  <SearchDialogTrigger />
  <SearchContent />
  <SearchDialogOverlay />
</SearchDialog>

The outpost search component uses Radix UI under the hood to provide accessible component and simple usage. Check out their docs for information about the specific props the base component accepts.

For AI Powered Search

<SearchContent APIKey={API_KEY} cometId={COMET_IT} config={{ stream: true }} />

License

Search.js is a project by Outpost.

Released under the MIT License.