Skip to content

LoadingDots

widgetsfeedback

Dot color

Installation

$ bunx termuijs add loading-dots

Copies the source into src/components/loading-dots/ and installs @termuijs/core, @termuijs/widgets.

Usage

ts
import { LoadingDots } from '@termuijs/widgets'
ts
new LoadingDots(style: Partial<Style> = {}, opts: LoadingDotsOptions = {})

API Reference

LoadingDots

PropTypeRequiredDescription
labelstringoptionalLabel shown before the dots
maxDotsnumberoptionalMaximum number of dots in the cycle
colorColoroptionalDot color
#feedback#loading-dots