question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prefix on Select?

See original GitHub issue

What problem does this feature solve?

I’d like to add an icon in my Select.

What does the proposed API look like?

<Select prefix={ <Icon type="search" /> } />

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:24
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

33reactions
afc163commented, Dec 10, 2017

It will make Select extremely complicated. 😨 I think we should pass it, sorry pal. You can try Input.Group. https://ant.design/components/input/#components-input-demo-group

23reactions
shreyansRScommented, Apr 20, 2020

I have the same problem. Can we make a api for prefix icon?

https://codesandbox.io/s/intelligent-wildflower-fbo1c?file=/index.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL select join: is it possible to prefix all columns as 'prefix. ...
It seems the answer to your question is no, however one hack you can use is to assign a dummy column to separate...
Read more >
Prefix, Suffix and Derived words for select
Prefixes of select · deselect · reselect · preselect · unselect.
Read more >
Styled HTML Select with Prefix and Suffix
Nothing too flashy here, but I often want to add supplemental information to my inputs, and prefixes and suffixes help to add context....
Read more >
Add prefixes to fields on select with join - Databases
Hello, I have two tables that have a couple of columns with the same name. Now I want to select all of the...
Read more >
Is it possible to add a prefix to all columns of a joining table?
Hello Is there a quick way to add a prefix for the columns of the table ... the columns in the produced selection...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found