Bridge Training
UI Bridge

BidSequenceInput

Grid of bid chips with an optional undo button.

Compound component for displaying a sequence of bid chips in a grid layout, with an optional undo button. Shows an empty message when the sequence is empty.

Import from @workspace/ui-bridge/components/bid/bid-sequence-input.

import { BidSequenceInput } from '@workspace/ui-bridge/components/bid/bid-sequence-input';

<BidSequenceInput isEmpty={bids.length === 0} emptyMessage="No bids yet" onUndo={handleUndo}>
  {bids.map((bid) => (
    <BidSequenceInput.Chip key={bid} bid={bid} />
  ))}
</BidSequenceInput>

Compound API

ComponentDescription
BidSequenceInputRoot container with grid layout, undo button, and empty state
BidSequenceInput.ChipDisplays a single bid as a compact, disabled BidButton

Props

PropTypeDescription
childrenReactNodeBid chips to display in the grid
onUndo() => voidOptional callback for the undo button (button hidden when omitted)
emptyMessagestringMessage shown when isEmpty is true
isEmptybooleanWhether the sequence is empty
classNamestringAdditional CSS classes

On this page