Skip to content

components/progress

ProgressTone = "neutral" | "primary" | "secondary" | "accent" | "success" | "info" | "warning" | "error"

Supported ProgressTone values.


ProgressProps = object & ProgressHTMLAttributes<HTMLProgressElement>>

Props accepted by Progress.

optional tone?: ProgressTone


GameMeterProps = Omit<HTMLAttributes<HTMLDivElement>>, "children"> > & object

A compact labelled resource meter for game windows. Values come from the game.

label: string

value: number

max: number

optional tone?: ProgressTone

const Progress: ForwardRefExoticComponent<object & ProgressHTMLAttributes<HTMLProgressElement> > & RefAttributes<HTMLProgressElement>>>>

A progress indicator for caller-provided progress values.


const GameMeter: ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>>, "children"> > & object & RefAttributes<HTMLDivElement>>>>

Pair a game’s bounded resource value with its visible and accessible meter.