UI Bridge
TricksSelect
Controlled or uncontrolled field for a number of tricks.
Import from @workspace/ui-bridge/fields/tricks-select.
TricksSelect
Counts from zero to the mode's cards per hand (engine.hands.config.nbCardsPerHand). The dropdown spells the count out with trick.word; the toggle lays the digits on a seven-column grid, overridable through className. target outlines the count that makes the contract.
import { TricksSelect } from '@workspace/ui-bridge/fields/tricks-select';
<TricksSelect variant="toggle" target={9} value={tricks} onChange={setTricks} />Demo
Toggle
The same field with variant="toggle": every option inline, one pressed at a time.
Props
Prop
Type
Also accepts disabled and the context override of withBridgeContext.