Spinner
Mostrar procesos activos. Feedback claro. Prevenir acciones duplicadas.
Loading invoices
Pulling the last 12 months from Stripe.
Instalación
pnpm dlx nachui add spinnerAnatomía
Ejemplos
Por defecto
Loading invoices
Pulling the last 12 months from Stripe.
Tamaños
Puedes cambiar el tamaño del spinner usando la propiedad
size.Table cell
Card body
Side panel
Full page
Variantes
Puedes cambiar el color del spinner usando la propiedad
variant.Building web-app
step 3 of 5
Queued: docs site
waiting for a runner
Promoting to production
almost done
Syncing environment variables
18 of 24
Retrying image upload
attempt 2 of 3
Rolling back api-gateway
triggered by CI
Referencia de API
Spinner
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'xl' | 'md' | El tamaño del spinner |
variant | 'default' | 'primary' | 'muted' | 'success' | 'destructive' | 'warning' | 'info' | 'default' | Estilo visual |
className | string | - | Clases CSS adicionales |
¿Encontraste algo que mejorar?
¿Notaste un error, tipografía o detalle faltante en esta página? Ayúdanos a mejorar la documentación abriendo un issue en GitHub.