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

AbilityBarProps

Property Type Description
className? string An override that shows in the diff.
icons? Readonly<Record<string, ReactNode>> An element per ability, over the icon registered with it.
keys? readonly string[] The key that presses each slot, as KeyboardEvent.code names it, in slot order; its length is the slot count, up to the four the fan holds and one more for primary. Left out, Digit1 to Digit4. The badge on the slot is the code’s last character for a digit or a letter key, and the code itself for any other.
order? readonly string[] Abilities on the keys they keep, in key order, whatever order the player was granted them and whichever she holds: a name here keeps its key while another is missing. An ability past the list takes a free key. Left out, the keys follow the grants’ order.
primary? string The ability on the arc’s large centre button, by name. Left out, every ability sits on the fan.
refusal? boolean Whether the bar shows why the last cast was refused, under the slots. Left out, it does; a game that draws the line its own way reads useCast’s refusalText.
shape? ActionBarShape The buttons’ outline, as ActionBar takes it.