LoadingDots
Three animated dots that signal activity subtly, designed to sit inline next to text or inside a button. They inherit currentColor.
Feedback and status · TaishoDS Core, in plain HTML.
Examples
One working example per case. Each example is the HTML of its preview—copy it as is, and with Core’s CSS and JS loaded, it looks and works the same.
Saving indicator
Saving
Class reference
Every value of each modifier, with its HTML ready to copy.
Size
Dot size: sm, md, or lg.
When to use
- The loading signal sits inline and shouldn’t grab attention.
- You’re replacing a button’s text while a form submits.
- The wait is brief, and a spinner looks heavy next to the text.
When not to use
- The loading takes up a whole block of the screen →
spinnerorskeleton. - You know how much is left →
progress.
Do
- Size them to the text they accompany. They inherit the color and size from their context.
- In a button, keep the width so it doesn’t jump when the text comes back.
Don’t
- Don’t use them as the main indicator for a long load. They don’t communicate progress.
- Don’t leave them animating once the operation has finished or failed.
TaishoDS Core
Doesn’t need JavaScript—it’s markup and CSS.
CSS animation.
From the CDN, without a build, load taisho.loading-dots.css along with taisho.base.css. That file is all you need.
For how Core works in general, see Behavior.
Accessibility
- Exposes
role="status"witharia-label(default “Loading…”) for screen readers.
Verification
What was actually tested. Anything that wasn’t tested says so—we’d rather say “not verified” than claim too much.
- axe WCAG 2.2 A + AA in a real browser, in light and dark mode, before every release.
- keyboard Adds no keys of its own—it uses the browser’s native behavior.
- screen reader Not verified with a screen reader. Test it in your own combination of components, not just here, where each one appears alone and on its happy path.