UI Bridge
ResultExpectedSelect
Controlled or uncontrolled select for the expected result, in the NS frame.
Import from @workspace/ui-bridge/fields/result-expected-select.
ResultExpectedSelect
Two groups: the contract sentinels (makeContract, defeatContract, plus par when the mode has no contract) and explicit trick counts up to engine.hands.config.nbCardsPerHand. Values are always expressed from the NS frame.
contractsurfaces the required trick count next to the sentinels and tags the matching count as the make equivalent; without it the sentinels are disabled with a hint.parHinttints the dot of each count: unreachable counts red, reachable counts green.
import { ResultExpectedSelect } from '@workspace/ui-bridge/fields/result-expected-select';
<ResultExpectedSelect
value={result}
onChange={setResult}
contract={{ level: 3 }}
parHint={parHint}
/>Demo
Select only: the grouped options do not fit a toggle group.
Props
Prop
Type
Also accepts disabled and the context override of withBridgeContext.