Spinner
A borrowed-border spinner that takes the current text colour.
import
import { Spinner } from '@joshicodes/cock';Sizes
API
Read out of the component sources at build time, so it matches the version you installed.
Every component also takes class, merged
through tailwind-merge so your utility wins.
Props of Spinner
| Prop | Type | Default |
|---|---|---|
size | 'sm' | 'md' | 'lg' | 'md' |
class | string | — |
label | string | 'Loading' |