Installation
Usage
import { Bars } from "@/components/loading-ui/bars";<Bars className="h-12 w-16" />Customization
Bars is a compact activity indicator for dense UI. It stretches each bar to
the container height, divides width evenly across the bars count, and inherits
currentColor. Timing is controlled with --duration and --delay.
Size
Set a stable height and width so the bars have room to breathe next to labels or inside compact controls.
Color
Use inherited foreground colors in product UI, or direct text utilities for status-specific swatches.
Duration
Set --duration when the indicator should feel snappier or more patient.
Stagger
Set --delay to control how tightly the bars follow each other.
Bar Count
Use bars to make the indicator denser for wider surfaces or simpler for tight
inline states.
Examples
These examples keep Bars close to operational UI: queues, indexing, and
processing states where a meter-like shape feels appropriate.
Button
Buttons can use Bars when the action is actively processing but should still
feel compact.
Badge
Badges work well for small active, queued, or indexing labels.
Input Group
Input groups keep indexing or search feedback next to the field it affects.