counterstrike-cn

Progress Bar

Loading and download progress indicators.

Progress Bar

Progress indicator styled after CS 1.6's loading screen progress bar — with the inset border track, animated striped fill, and optional percentage display.

Interactive Preview
Default72%
Loading45%
Download88%

Variants

  • default — Gold fill, standard behavior
  • loading — Gold fill with animated diagonal stripes
  • download — Green fill (like download progress)

Usage

import { ProgressBar } from "@/components/ui/cscn/progress-bar";

<ProgressBar value={65} label="Loading de_dust2..." />

<ProgressBar value={42} variant="loading" label="Receiving game data..." />

<ProgressBar value={87} variant="download" label="Downloading map..." />

<ProgressBar value={100} showPercentage={false} />

Props

PropTypeDefaultDescription
valuenumberCurrent progress value
maxnumber100Maximum value
labelstringLabel text above the bar
showPercentagebooleantrueShow percentage number
variant"default" | "loading" | "download""default"Visual style