Spinner
A React component in Beamline's Feedback category, in the free sample.
A ring that spins while work runs and closes into a drawn check or cross when it ends.
Use it for
- Short indeterminate work tied to one row, button or step.
Not for
- Page loading → skeleton.
- Known progress → progress.
Anatomy
- track
- arc
- check / cross
Variants
- size: sm, md, lg
States
- loading
- success
- error
- waiting to show (delay)
Keyboard
- role=status while loading; role=img with Done/Failed after.
Motion
The loading ring rotates while visible; managed/OS reduction holds the ring still. Success/error retains a meaningful shape and label; draw and arc use semantic timings. With a delay the ring stays unseen for that long, then fades in over --pui-fade-in.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
state | 'loading'|'success'|'error' | — | `success` draws a check out of the ring, `error` a cross; both stop spinning. |
size | 'sm'|'md'|'lg' | — | Control size within the supported size steps. Defaults to "md". |
label | string | — | Accessible name while loading. |
delay | number | 0 | ms to wait before it shows: work that ends sooner never flashes a spinner (about 300 is a good start). Default 0. |
classNames | SpinnerClassNames | — | Classes for the named visual parts; no part overrides by default. |
style / ref | CSSProperties / native Ref | — | style: Inline styles on the documented visual root; no inline overrides by default. ref: Receives the documented root element; no ref by default. |
className | string | — | Classes on the documented visual root; no override by default. |
ref | Ref<HTMLSpanElement> | — | Receives the documented root element; no ref by default. |
style | CSSProperties | — | Inline styles on the documented visual root; no inline overrides by default. |
Used in
- Account ledger
- Security
- Accounting workbench
- Action center
- Admin users
- Agency book
- Agent builder
- Agent monitor
- Agent runs monitor
- AI agent workspace
- Analytics dashboard
- API keys & webhooks
- Applicant company
- Applicant projects
- Appointment book
- Approval policy
- Artifact workbench
- Asset library
- Asset packs
- Asset workspace
- Audience segments
- Audit log
- Audit room
- Auth page
- Automation runs
- Automation steps
- Battery sizing
- Benefit changes
- Billing & invoices
- Billing desk
- Services and hours
- Budget month
- Bulk item edit
- Call sheet
- Captions
- Care plan
- Case workspace
- Category manager
- Change orders
- Changelog feed
- Insurance claims
- Click heatmap
- Book an appointment
- Client forms
- Client journal
- Content workbench
- Collection batch edit
- Company access
- Component properties
- Component source
- Condition checklist
- Contact profile
- Content releases
- Conversation history
- Corrective actions
- Correlation editor
- Counter service
- Course builder
- Course dashboard
- Course home
- Crew booking
- CRM pipeline
- Customer requests
- Cut review
- Cycle planner
- Dashboard controls
- Dashboard panels
- Data binding
- Database builder
- Day agenda
- Design inputs
- Desk booking
- Dispensing
- Document finder
- Document history
- Document review
- Domain verification
- Draft orders
- Drawing board
- Electrical design
- Element index
- Email automation
- Empty states
- Engineering changes
- Equipment register
- Estimate share
- Event evidence
- Event registration
- External review
- Field conditions
- File detail
- File manager
- Flight logbook
- Flight record
- Flight route
- Gift batches
- Gift desk
- Goods receiving
- Grading desk
- Grazing plan
- Guest messages
- Guest review
- Health questionnaire
- Helpdesk inbox
- Hiring pipeline
- Hours ledger
- AI image studio
- Import runs
- Inspection review
- Instructor finder
- Instrument use
- Intake triage
- Integrations
- Inventory counts
- Inventory finder
- Inventory item
- Invoices
- Issue workbench
- Issued ticket
- Item setup
- Itinerary
- Job booking
- Job booking setup
- Job card
- Job materials
- Kit builder
- Knowledge base manager
- Label designer
- Language preview
- Layout inspector
- Lease renewals
- Lease setup
- Link booking
- Linked appointments
- Localization overview
- Maintenance plan
- Maintenance plans
- Map annotations
- Map explorer
- Market screener
- Matrix question
- Media collection
- Meeting and call review
- Messaging journeys
- Metadata fields
- Model inspector
- Model issues
- Model playground
- Model workbench
- My shift
- Newsletter desk
- Note templates
- Notification preferences
- Nutrition library
- Onboarding checklist
- Order board
- Order changes
- Order closeout
- Order composer
- Order detail
- Order history and fills
- Order ledger
- Orders admin
- Owner records
- Pack station
- Packages & memberships
- Page editing
- Page header
- Page inline edit
- Parcel record
- Participant review
- Parts tracker
- Patient chart
- Patient overview
- Payroll approvals
- Payroll cycles
- Payroll run
- Permit application
- Permit fees
- Permit record
- Permit services
- Pipeline record
- Pipeline views
- Plan acceptance
- Plan comparison
- Plan follow-up
- Plan readiness
- Plan templates
- Planner setup
- Playbook check
- Policy rules
- Portfolio overview
- Post performance
- Post release
- Pre-flight briefing
- Print quote
- Print scheduler
- Probing chart
- Procedure picker
- Product analytics
- Product editor
- Production and lots
- Production plan
- Program modules
- Program setup
- Project board
- Project browser
- Project directory
- Project home
- Project periods
- Project signals
- Projects
- Proposal payments
- Protocol builder
- Prototype review
- Prototype task
- Publishing team
- Purchase order desk
- Purchase orders
- Purchase request
- Purchasing rules
- Quality checks
- Query library
- Question builder
- Queue display
- Queue settings
- Reading library
- Reconciliation
- Record catalogue
- Record editor
- Record import
- Record search
- Record settings
- Record setup
- Record sharing
- Record versions
- Recruiter home
- Rental availability
- Rental policy
- Report builder
- Report library
- Research synthesis
- Reservation desk
- Resource booking
- Resource rules
- Rooms & equipment
- Restock desk
- Results notebook
- Retention analysis
- Return case
- Return queue
- Return request
- Review page builder
- Review share
- Rig editor
- Roles & permissions
- Roof layout
- Room readiness
- Roster publishing
- Route plan
- Run of show
- Sales dashboard
- Sample ledger
- Sample storage
- Saved views
- Scan station
- Schema fields
- Screenplay revisions
- Segment editor
- Serial allocation
- Service estimate
- Service tasks
- Session notes and tasks
- Session replay
- Settings
- Shared inbox
- Shift briefing
- Shift planner
- Shift rotations
- Shipment split
- Shop floor
- Shot list
- Sign in
- Signature fields
- Signing request
- Sign up form
- Slide presenter
- Slot editor
- Social media scheduler
- Solar quote
- Sound library
- Special orders
- Stage reports
- Status dashboard
- Stay folio
- Step form
- Stock alerts
- Stock count
- Stock moves
- Stop runs
- Study flow
- Study setup
- Submittal register
- AI support chat
- AI support console
- System pages
- Table service
- Tag manager
- Task results
- Team calendar
- Team chat
- Team & members
- Telemetry explorer
- Text styles
- Ticket orders
- Ticket setup
- Timesheet review
- Tracker desk
- Trading terminal
- Training progress
- Transaction review
- Transition sequence
- Translation editor
- Translation key
- Translation workbench
- Treatment plan
- Tree test
- Trip budget
- Turntable review
- Versioned dashboard
- Versioned document
- Visit board
- Visitor desk
- Visitor journey
- Voice agent
- Volunteer rota
- Waitlist desk
- Work orders
- Workflow builder
- Workflow composer
- Workflow library
- Workflow versions
- Workout logger
- Workout planner
- Workspace switcher
- Writing canvas
Dependencies
motion
Import
import { Spinner } from "@beamline/spinner";
Get it
Spinner is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Spinner is included in the free MIT sample. Get Beamline · Connect your agent
More in Feedback
- Timer: A duration that counts down (or up) from your clock: Start, Pause, Resume, Reset and the finish reported once; the time left drawn as a bar you drag (or…
- Notification centre: Updates that wait to be read: a bell with the unread count opens All / Unread, new and earlier groups, and per item mark read or dismiss.
- Usage meter: An allowance and what fills it: one bar split by source, the room left, a warning near the limit and the overflow in its own red well past a notch at the…
- Alert: A message that stays until it is dealt with: what happened, what to do, an action; danger and warning are announced; dismissing folds its height away.
- Cookie consent: Asks once which cookies a visitor allows, with Reject all and Accept all given equal weight; Customise grows the notice in place into each category with…
- Empty state: What a place will hold and the first step to fill it, instead of a blank; a compact size for panels and filtered tables.
- Announcement bar: A banner across the top for news and offers: messages take turns, a countdown ticks, and dismissing folds it away and can remember it.
- Progress: How much of a known task is done, or a moving bar when the length is unknown, with an optional label and value.
- Skeleton: Holds the shape of content while it loads, then crossfades into it, so nothing jumps.