Howdy, thanks for the time and effort to make this :) I (gladly) heard about the renderless mode planned for v3 💥 but while that doesn't come out, what do you think about passing elements to actions (clear and toggle icon) as slots?
At the moment we rely on .clear selector (with high specificity) to style the button and on css trickery to "design" the Chevron toggle. At some cases would be nice to pass custom elements/components such as buttons or icons (svg). I've did some playing at my fork and this might be simple to implement.
Let me know if still interesting for the current release, it would look something like this:
I'm also very interesting in having more slots like for the actions and also for the vs__selected-options to show the selected value in a different way (Maybe icons, images etc)
Howdy, thanks for the time and effort to make this :) I (gladly) heard about the
renderless mode
planned for v3 💥 but while that doesn't come out, what do you think about passing elements to actions (clear and toggle icon) as slots?At the moment we rely on
.clear
selector (with high specificity) to style the button and on css trickery to "design" the Chevron toggle. At some cases would be nice to pass custom elements/components such as buttons or icons (svg). I've did some playing at my fork and this might be simple to implement.Let me know if still interesting for the current release, it would look something like this:
Note the data-vs-toggle selector, since (as far as i my vue knowledge goes) we can't pass refs through slot scope.