toolbar.vue 617 B

123456789101112131415161718192021222324252627
  1. <script setup lang="ts">
  2. import {
  3. AuthenticationColorToggle,
  4. AuthenticationLayoutToggle,
  5. LanguageToggle,
  6. ThemeToggle,
  7. } from '../widgets';
  8. defineOptions({
  9. name: 'AuthenticationToolbar',
  10. });
  11. </script>
  12. <template>
  13. <div
  14. class="flex-center bg-background dark:bg-accent absolute right-2 top-4 rounded-3xl px-3 py-1"
  15. >
  16. <!-- Only show on medium and larger screens -->
  17. <div class="hidden md:flex">
  18. <AuthenticationColorToggle />
  19. <AuthenticationLayoutToggle />
  20. </div>
  21. <!-- Always show Language and Theme toggles -->
  22. <LanguageToggle />
  23. <ThemeToggle />
  24. </div>
  25. </template>