Skip to content
Compare
Choose a tag to compare
@clerk-cookie clerk-cookie released this 26 Feb 21:31
· 11 commits to main since this release
bb4b762

Minor Changes

  • Introduce updateClerkOptions() utility function to update Clerk options on the fly. (#5235) by @wobsoriano

    Usage:

    <script setup>
    import { updateClerkOptions } from '@clerk/vue';
    import { dark } from '@clerk/themes';
    import { frFR } from '@clerk/localizations';
    
    function enableDarkTheme() {
      updateClerkOptions({
        appearance: {
          baseTheme: dark,
        },
      });
    }
    
    function changeToFrench() {
      updateClerkOptions({
        localization: frFR,
      });
    }
    </script>
    
    <template>
      <button @click="enableDarkTheme">Enable Dark Theme</button>
      <button @click="changeToFrench">Change to French</button>
    </template>

Patch Changes