How to switch beetween themes

2 posts, 0 answers
  1. Arnaud
    Arnaud avatar
    5 posts
    Member since:
    Dec 2018

    Posted 20 Sep 2020 Link to this post

    Hi,

    On most examples on telerik site there is a menu to switch between themes but I didn't managed to find some examples on how to actually implement it?

    Any help ?

    Thanks,

    Arnaud.

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2206 posts

    Posted 22 Sep 2020 Link to this post

    Hi Arnaud,

    Below you can find example which shows how to achieve the desired behavior by dynamically setting `link` element `href` prop to different themes from unpkg. The relevant code can be found in `App.js` and `ThemeChooser.jsx` files:

    - https://stackblitz.com/edit/github-kebhl2?file=src%2FApp.js

    Regards,
    Vladimir Iliev
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Back to Top