Yoyo Loading State Builder
Build Yoyo spinning and loading state attributes interactively. Configure show/hide, CSS class toggling, attribute setting, and delays with a live preview.
- Free, no sign-up
- REST + MCP
- Updated
- Reviewed by Olgun Ozoktas
Common Patterns
Loading Behavior
Options
Generated Attributes
yoyo:spinning
Full HTML Snippet
<div yoyo:spinning>
Loading...
</div>Live Preview
How to Use Loading States
-
Choose Behavior
Select whether to show/hide, add/remove classes, or set attributes. -
Configure Options
Optionally add a delay and target specific actions. -
Preview
Click Simulate Loading to see the behavior in action. -
Copy Attributes
Copy the generated attributes and add them to your Yoyo template.
Common Loading State Patterns
Form Submissions
Content Updates
Skeleton Loading
Why Use the Loading State Builder?
The Yoyo Loading State Builder helps you configure Yoyo's spinning and loading state attributes through an interactive interface. Choose from common patterns or build custom loading behaviors with real-time preview.
Yoyo's loading system supports showing/hiding elements, toggling CSS classes, setting HTML attributes, adding delays, and targeting specific actions, all through declarative template attributes.
How it compares
Instead of looking up the Yoyo README every time you need a loading indicator, use this builder to configure the exact combination of attributes you need. The live preview shows exactly how the loading state will behave.
Loading State Tips
- Use delay to avoid showing spinners for fast requests (under 200ms).
- Use yoyo:spin-on to prevent spinners from showing for every action on the page.
- Combine class addition with attribute setting for robust loading UX.
- The aria-busy attribute is great for accessibility during loading states.