Components
Progress

Progress

The Progress component provides you with progress indicators.

Import

import { Progress } from '@nostromo/ui-core'
// or
import { Progress } from '@nostromo/ui-core/progress'

Usage

import { Progress } from '@nostromo/ui-core'
 
export default function Example() {
  return (
    <Progress value={75} max={100} />
  )
}

Live Examples

Live Example
☀️
Copy
Storybook →
View Code
import { Progress } from '@nostromo/ui-core' export default function ProgressExample() { return ( <div className="space-y-4"> <Progress value={33} /> <Progress value={66} /> <Progress value={100} /> </div> )...

With Label

Live Example
☀️
Copy
Storybook →
View Code
import { Progress } from '@nostromo/ui-core' export default function ProgressWithLabel() { return ( <div className="space-y-2"> <div className="flex justify-between text-sm"> <span>Upload progress</span> <span>75%</span> </div> <Progress value={75} />...

Props

PropTypeDefaultRequiredDescription
valuenumber-YesCurrent progress value
maxnumber100NoMaximum value
showLabelbooleanfalseNoWhether to show percentage label
labelstringundefinedNoCustom label text (overrides percentage)
animatedbooleanfalseNoWhether to animate progress changes
glowbooleanfalseNoWhether to show glow effect
indeterminatebooleanfalseNoWhether progress is indeterminate (loading)
variant"default" | "success" | "warning" | "error""default"NoVisual variant
size"sm" | "default" | "lg""default"NoSize of the progress bar
classNamestringundefinedNoAdditional CSS classes

Standard HTML Props

The Progress component extends React.HTMLAttributes<HTMLDivElement>, so it accepts all standard HTML div attributes (e.g., id, data-*, aria-*).