# @seekora-ai/ui-sdk-react

React UI components for Seekora search — SearchBar, SearchResults, Facets, Pagination, Stats, SortBy, QuerySuggestions, and more.

## Installation

```bash
npm install @seekora-ai/ui-sdk-react
```

## Tree-shaking

This package declares `sideEffects` so bundlers (Vite, Webpack, esbuild, Rollup) can drop unused exports.

- `**/*.css` files are side-effecting (CSS imports trigger stylesheet injection)
- `./src/styles/inject.ts` runs `document.head.appendChild` and is preserved on import
- All other modules are pure — import only what you need:
  ```ts
  import { Stats } from "@seekora-ai/ui-sdk-react";  // only Stats + deps tree
  ```

The UMD slim build is NOT tree-shaken (it bundles all primitives). Tree-shaking applies to npm consumers using bundlers.
