chadtmiller.com/spaces-bookclub
Book club: a Svelte demo app for atproto spaces (@atproto/lex-space)
0
0
<script lang="ts">
let { size = 'md', label }: { size?: 'sm' | 'md' | 'lg'; label?: string } = $props()
</script>
<span class="spinner {size}" role={label ? 'status' : undefined} aria-label={label}></span>
<style>
.spinner {
display: inline-block;
border: 2px solid currentColor;
border-right-color: transparent;
border-radius: var(--radius-full);
animation: spin 700ms linear infinite;
opacity: 0.8;
}
.sm {
width: 0.875rem;
height: 0.875rem;
}
.md {
width: 1.25rem;
height: 1.25rem;
}
.lg {
width: 2rem;
height: 2rem;
border-width: 3px;
color: var(--color-accent);
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
</style>