We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
selected
#label
Right now, the docs show the following usage:
<template #label="{ option }"> <p class="italic"> <UIcon :name="option.icon" /> {{ option.label }} </p> </template>
In practice, it's common to need to apply some style to selected items, especially when hiding the ring. This will look something like this:
<template #label="{ option }"> <p class="italic" :class="{ selected: selectedValue === option.value}"> <UIcon :name="option.icon" /> {{ option.label }} </p> </template>
I'd much prefer to have a selected prop passed to the slot so I can do something like this:
<template #label="{ option, selected }"> <p class="italic" :class="{ selected }"> <UIcon :name="option.icon" /> {{ option.label }} </p> </template>
No response
The text was updated successfully, but these errors were encountered:
Hello @cco3, I'm working on it 🙂
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description
Right now, the docs show the following usage:
In practice, it's common to need to apply some style to selected items, especially when hiding the ring. This will look something like this:
I'd much prefer to have a
selected
prop passed to the slot so I can do something like this:Additional context
No response
The text was updated successfully, but these errors were encountered: