mapbox / mapbox/mr-ui

SearchInput component

Open
#15 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

jira-sync-complete
Dominant language
TypeScript
Stars
90
Forks
5
PR merge metrics
No merged PRs in 30d

Description

An input with the following details:

- Full width by default.
- Two sizes: small and large.
- Text-colored search icon on the left.
- Placeholder is *required*.
- Optionally add a button to the right (flushed against the input) that says "Search".
- Accepts both `onChange` and `onSubmit` props. `onSubmit` will be triggered if you hit the Enter key or click the "Search" button if you have it.

I know this will be a popular component for internal apps.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named in the issue. Start by locating the repository's existing input and button components, then implement the specified sizes, icon, required placeholder, optional Search button, and submit behavior; done means all listed interactions and states are covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.