OptionalanimationDuration of fill animations in milliseconds.
OptionalbackgroundCSS-compatible background color string.
OptionalborderCSS-compatible border color string.
OptionalborderBorder radius in pixels for rounded corners.
OptionalborderBorder thickness in pixels.
OptionalclassCustom CSS class for the root HTML element.
OptionaldistanceDistances { start, end } for automatic opacity fading based on camera proximity.
OptionalfillCSS-compatible fill color string.
OptionalglowCSS-compatible glow color string.
OptionalglowIntensity of the glow effect (0-1).
OptionalheightPhysical or pixel height.
OptionalmaxMaximum value representing 100% completion.
OptionaloccludeWhether the bar can be hidden by 3D objects in the scene. Default: true.
OptionaloffsetScreen-space pixel offset [x, y] from the anchor point. Default: [0, 0].
OptionalpositionWorld position [x, y, z] to anchor the bar. Default: [0, 0, 0].
OptionalsegmentsNumber of visual segments (e.g., for segmented health bars).
OptionalshowWhether to display text (e.g., "75%").
OptionalstyleCustom inline CSS styles for the root HTML element.
OptionaltextFormat for the displayed progress text.
OptionalvalueCurrent progress value.
OptionalwidthPhysical or pixel width.
Props for the HealthBar component.
Renders a world-space health bar that tracks a 3D target. Useful for NPCs, players, and destructible objects.