lotusui
A Go design system for desktop and mobile — one codebase, native apps. Web when you want it.
GitHub

Spinner

The standalone loading arc — Button's spinner, mountable anywhere.

Self-invalidating; mount it only while loading. SpinnerTint takes any ink.

Installation

Use the module import (the default), or own the source: lotusui add vendors the component into your app and lotusui update keeps the copy mergeable — see Registry.

Go
go get github.com/ikaito-com/lotusui

# or vendor the source into your app:
go run github.com/ikaito-com/lotusui/cmd/lotusui add spinner

Usage

open demo ↗

Badge

Inside a Badge via its Start slot — the syncing states.

open demo ↗

API

OptionTypeDescription
Spinner(th, size)unit.DpThe arc in muted ink; self-invalidating.
SpinnerTint(th, size, color)color.NRGBAThe arc in any ink.

lotusui is a Go design system for native desktop and mobile — and the web when you want it. Docs demos are the real components (WebAssembly) — one gallery app, each Preview an iframe addressed by URL hash.