algolia / algolia/docsearch

@docsearch/react: Remove dependency on @base-ui/react

Open
#3,038 0 comments 0 reactions 0 assignees View on GitHub
DocSearch v5 enhancement
Dominant language
TypeScript
Stars
4.4k
Forks
439
Avg merge
14h 32m
Merged PRs (30d)
19

Description

## Describe the problem

`@base-ui/react` adds too much weight. It was short sighted to add just for 2 components, even if it does make a11y easier.

## Describe the solution

Will have to explore either smaller alternatives, or just manage it all in package.

## Alternatives concidered

We could lazy load the `FacetBar` and `SourcesPanel` components, but that only delays the bundle size being loaded and introduces potential lag on a user's interaction.

Contributor guide

Open the contributing guide

Research direction

Start by locating the @base-ui/react dependency and the FacetBar and SourcesPanel components. Compare smaller alternatives or an in-package implementation while preserving accessibility and avoiding the deferred bundle cost; done means @base-ui/react is removed without interaction regressions.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.