Skip to main content
Version: 1.0.5

IProgressBarProps

@spartanfx/react v1.0.5


@spartanfx/react / IProgressBarProps

Interface: IProgressBarProps

Props for the ProgressBar component.

Properties

PropertyTypeDescription
appearance?AppearanceModeAppearance mode: light or dark Default AppearanceMode.light
classNames?objectOptional class name overrides for styling different elements of the component.
classNames.bar?stringClass name for the bar fill element.
classNames.circle?stringClass name for the circle svg element.
classNames.label?stringClass name for the label element.
classNames.root?stringClass name for the root container.
classNames.text?stringClass name for the text element inside the bar.
classNames.wrapper?stringClass name for the bar wrapper element.
currentnumberThe current progress value.
customSize?numberCustom width in pixels when size is 'custom' (only for circle and pie style) Only applies in ProgressBarMode.Cirlce and ProgressBarMode.Pie mode
label?stringOptional label displayed above the progress bar.
mode?ProgressBarModeMode variant: 'bar' for traditional horizontal bar, 'circle' for circular ring progress, 'pie' for pie chart Default ProgressBarMode.Bar
showAsPercentage?booleanIf true, displays the value as a percentage (e.g., "75%"). Otherwise, displays the raw value as current/total. Default false
showValue?booleanWhether to show the current progress value inside the bar. Default false
size?ProgressBarSizeSize preset for circle style: 'small' (60px), 'medium' (100px), 'large' (140px), 'custom' Default 'medium'
strokeSizePercent?numberStroke size as percentage of radius (10-50). Only applies to ProgressBarMode.Cirlce mode. Default 20
tokens?IProgressBarTokensCustomization tokens for styling
totalnumberThe total value that represents 100% progress.