themesberg / themesberg/flowbite-react

TextInput icon onClick

Open
#734 6 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:rocket: enhancement good first issue help wanted
Dominant language
TypeScript
Stars
2.1k
Forks
506
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
There is no straight way to handle TextInput's icon onClick event...example is clicking the Eye icon to unmask password input

Describe the solution you'd like
A straight forward way of doing this, probably a prop called iconClick

Describe alternatives you've considered
Nothing yet

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

Start by locating the TextInput component and examining how its icon is rendered and how input events are exposed. Check existing component usage and documentation for the expected API; done when consumers can provide an icon-click callback suitable for actions such as revealing a password.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.