Skip to content

react

@fungi.computer/sprite


@fungi.computer/sprite / react

SpriteProps = AvatarPresentation & Omit<HTMLAttributes<HTMLDivElement>>, "children"> > & object

Avatar presentation plus ordinary attributes for the DOM host.

readonly optional service?: SpriteService

Optional for standalone use; a shell normally supplies SpriteProvider.

readonly optional paused?: boolean

readonly optional onState?: (state) => void

Observe loading, ready, error, and disposal changes.

PlayerState

void

const Sprite: ForwardRefExoticComponent<AvatarPresentation & Omit<HTMLAttributes<HTMLDivElement>>, "children"> > & object & RefAttributes<HTMLDivElement>>>>

Own one player; source and appearance changes do not remount its React host.

SpriteProvider(__namedParameters): Element

Shell-owned renderer and asset configuration; no selected identity lives here.

SpriteService

ReactNode

Element