Support inline-block / sizes
See original GitHub issuereact-select only seems to work as a full-width block component. It would be nice if it would also support use as an inline-block component (like a standard <select>
) with either an auto-calculated width or a specified width.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:66
- Comments:40 (4 by maintainers)
Top Results From Across the Web
"inline-block" | Can I use... Support tables for HTML5, CSS3, etc
CSS inline-block ... Method of displaying an element as a block while flowing it with text. Usage % of. all users, all tracked,...
Read more >inline-size - CSS: Cascading Style Sheets - MDN Web Docs
The inline-size CSS property defines the horizontal or vertical size of an element's block, depending on its writing mode.
Read more >CSS Layout - display: inline-block - W3Schools
Compared to display: inline , the major difference is that display: inline-block allows to set a width and height on the element.
Read more >When do you use inline-block? | CSS-Tricks
inline -block elements behave exactly as if they were a character of text. No breaking and they align just like text in inline...
Read more >How to Make Inline-Block Elements Add Up to 100% Width
This solution allows you to set the width of your inline-block divs to exactly 50% without compensating for extra pixels. However, the font-size...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is there a way to make react-select be auto-sized (by content size) and not take up the full width of its parent (or having to be sized to a fixed width that would have to be calculated somehow from the content)?
This is the closest I can get with native style extending functionality: