Dropdown Text Prop
See original GitHub issueBug Report
Dropdown allows passing text prop that will be later rendered inside of your dropdown component.
In reality any react node is working because it is rendered as {text} internally but PropType checking errors since in expects string.
It might be reasonable to relax PropTypes constraints since it working anyways but it will be slightly stupid because text name implies passing a string as opposed to content.
Why am I even doing that if there is a label prop?
label prop overrides dropdown arrow icon and I want to have a clear indication that there is dropdown available and another icon at the same time:
Version
0.81.1
Testcase
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Dropdown | Components - BootstrapVue
You can customize the text of the dropdown button by using either the text prop (shown in previous examples), or use the button-content...
Read more >Can the value and text properties of a dropdown list be used ...
Yes, it's clear now, thanks. The problem is that you are accessing the Text property of the DropDownList rather than the Text property...
Read more >Dropdown text prop of type string #2056 - GitHub
Hello guys, I bumped in to a use case, where I want a dropdown that has custom icon along with the default dropdown...
Read more >Dropdowns Components | React Widgets
React widgets has three dropdown components: <Combobox> , <DropdownList> , and <Multiselect> each share a large amount of functionality but are designed to...
Read more >Dropdown - Semantic UI React
HeaderDropdown.ItemDropdown.MenuDropdown.SearchInputDropdown.Text ... The shorthand props API fully manages state but needs to be extended to support the ...
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 Free
Top 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

@levithomason Hoped I won’t be that person who can’t read. Thanks for link and sorry for disturbance.
@levithomason Depending on how documentation is generated potentially cheap improvement might be having a link next to prop that directs to example showcasing prop usage and the other way around.