Feature: Select Details + Customizable Search
Hi there, great library!
Have thought about extending the functionality of Select where a box of customizable content is shown below the list, and can show additional details about each option as they are highlighted.
This feature is available in the widely used but now no longer actively maintained manifoldco/prompt-ui package (ref: "Details" in templates).
It would be great to also integrate this with custom search logic, where using / is able to search details shown in this box (or anything else in an Option, not just the string shown).
Thanks!
I'm not a project maintainer, so I can't speak to adding this feature, but I will say I have done something similar by using DescriptionFunc to update the description based on the selected value. If you use the description field of the select, it will appear above the select. But if you want to have the description below like you describe, you can use DescriptionFunc on a huh.Note that appears directly after the select and have its contents change dynamically. (It will just need to be bound to the &selectValue.) I think that will achieve something like what you're after!
I'm not a project maintainer, so I can't speak to adding this feature, but I will say I have done something similar by using
DescriptionFuncto update the description based on the selected value. If you use the description field of the select, it will appear above the select. But if you want to have the description below like you describe, you can useDescriptionFuncon ahuh.Notethat appears directly after the select and have its contents change dynamically. (It will just need to be bound to the&selectValue.) I think that will achieve something like what you're after!
Thanks for the pointer! I managed to get it working with a note as mentioned.
The request would now just be able to customize searching of options.