Skip to content
New issue

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

Images /Icons as labels #163

Open
petr-hybler opened this issue Sep 14, 2021 · 1 comment
Open

Images /Icons as labels #163

petr-hybler opened this issue Sep 14, 2021 · 1 comment

Comments

@petr-hybler
Copy link

hey, could please add this possibility to add icons instead of plain strings pls?

thank you

@bradr5
Copy link

bradr5 commented Nov 23, 2021

Although it's not documented, looking through the code it appears you can use slots for the labels by setting the labels prop to true.

<toggle-button
  :labels="true"
>
  <template v-slot:checked>
    <my-checked-icon />
  </template>
  <template v-slot:unchecked>
    <my-unchecked-icon />
  </template>
</toggle-button>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants