Props for MoleculeSpinner.
query - The search query to depict. Changing it resolves a new structure.size - Canvas edge length in CSS pixels. Defaults to 128, matching the cube it replaces.spinSeconds - Seconds per revolution. Changing it retimes without rebuilding.atomScale - Multiplier on the uniform atom radius; lower is more stick, less ball.showHydrogens - Draw explicit hydrogens. On by default; the full structure reads
better than a bare skeleton.pending - Rendered while the structure is still being resolved, before anything is
known. Kept separate from fallback so callers never flash one graphic and then
replace it with another.fallback - Rendered only once it is settled that there is nothing to draw: no query,
no PubChem match, or no usable WebGL context.onStatusChange - Notified on every lifecycle transition.Where a MoleculeSpinner is in its resolve-and-render lifecycle.
Renders the molecule a search query refers to as a slowly rotating ball-and-stick model, as a drop-in replacement for a generic loading spinner.
What a MoleculeSpinner resolved, reported through
MoleculeSpinnerProps.onStatusChange. Everything butstateis present only once a structure has been drawn.