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

Skeleton

The loading placeholder: rounded blocks and circles pulsing on the shared clock.

Give it the shape of the content it stands in for. Zero width fills the available width; SkeletonCircle is the round form. Self-invalidating — mount only while loading.

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 skeleton

Usage

open demo ↗

Avatar

open demo ↗

Card

Two header lines and a 16:9 media block inside a Card.

open demo ↗

Form

open demo ↗

Table

open demo ↗

Text

open demo ↗

API

OptionTypeDescription
Skeleton(th, w, h)unit.DpA pulsing rounded block; w = 0 fills the available width.
SkeletonCircle(th, d)unit.DpThe round form — avatars, icon slots.

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.