Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

BaseSpinner.vue

29 lines471 Bytes

1<template>
2 <span :class="$style.spinner" />
3</template>
4​
5<style module>
6.spinner {
7 display: inline-block;
8 width: 0.75em;
9 height: 0.75em;
10 margin-left: 4px;
11 border: 2px solid currentColor;
12 border-right-color: transparent;
13 border-radius: 50%;
14 font-size: small;
15 animation: spin 2s linear infinite;
17​
18@keyframes spin {
19 to {
20 transform: rotate(360deg);
21 }
23​
24@media (prefers-reduced-motion: reduce) {
25 .spinner {
26 animation: none;
27 }
29</style>