Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would love to be able to customize the icon and disable it #3

Open
peteygao opened this issue Mar 25, 2021 · 1 comment
Open

Would love to be able to customize the icon and disable it #3

peteygao opened this issue Mar 25, 2021 · 1 comment

Comments

@peteygao
Copy link

I find this implementation superior to rolling our own dropdown--so I was planning on changing the icon to a down-arrow but realized that wasn't one of the options exposed. Would love to be able to customize the SVG icon (or disable it entirely)!

@russelldavies
Copy link
Owner

So this would mean adding an icons field to the input function config record. There are three icon states:

  • selected
  • loading
  • typing text

Do you have any opinions on how to model this? Options I can think of:

...
, icons: { selected: Maybe Icon, loading: Maybe Icon, typing: Maybe Icon }
...

or just as a tuple: , icons: (Maybe Icon, Maybe Icon, Maybe Icon)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants