Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

ResourceBar

ResourceBar(props): Element | null

The ui’s Bar for an entity’s resource: filled in the resource’s colour, or Bar’s own fill where it has none, named by its label, with what its reservations hold back as a lighter band. Nothing while the entity has none of it. useResource draws it any other way.

Parameter Type
props ResourceBarProps

Element | null