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

Avatar

The circular identity mark: initials, a fallback glyph, any scale's tint.

Initials centered on a tinted circle; empty initials fall back to the person glyph. Color re-tints the pastel way from any scale.

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 avatar

Usage

open demo ↗

Sizes

open demo ↗

Group

AvatarGroup overlaps right-over-left, each avatar ringed in the panel background.

open demo ↗

Badge

Badge pins a status dot to the bottom-right rim — a color anchor, or an icon inside.

open demo ↗

Group with count

Count (or CountIcon) closes the group with a "+N" bubble.

open demo ↗

API

OptionTypeDescription
InitialsstringCentered in the circle; empty falls back to the person glyph.
SizeSizeThe shared size presets (Size2XS–Size2XL).
ColorColorScalePastel re-tint from any scale.
Scheme*SchemeWins over Color: full manual slot control.
Badge*AvatarBadgeStatus dot on the rim: Color anchors the fill, Icon renders inside.
AvatarGroup(th, opts, avatars…)widgetRinged overlap; Count/CountIcon add the trailing bubble.

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.