platform-bible-react
    Preparing search index...

    Variable ShrinkStepOverrideContextConst

    ShrinkStepOverrideContext: Context<undefined | number> = ...

    A shrink step forced from outside, overriding what a toolbar would measure from its own width.

    Separate from ShrinkStepContext because the two answer different questions. A toolbar publishes to ShrinkStepContext and cannot read its own value back, and that context defaults to SHRINK_STEP.WIDE rather than being unset — so a publisher reading it could never tell "no one is overriding me" from "someone is overriding me with the widest step". This context is undefined until something sets it, which is the distinction a publisher needs.

    Set it with ShrinkStepOverride rather than reaching for the provider directly.