refactor(AsyncButton): add loader

This commit is contained in:
Lukas Jakob
2023-02-27 09:20:49 -06:00
parent 2e78da732a
commit 0b7d070146
2 changed files with 51 additions and 1 deletions

View File

@ -0,0 +1,27 @@
button {
position: relative;
}
.spinner {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
animation-name: spin;
animation-duration: 800ms;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}