SearchInput component
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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