UI Bridge
VulnerableSelect
Controlled or uncontrolled field for one side's vulnerability, as a boolean.
Import from @workspace/ui-bridge/fields/vulnerable-select.
VulnerableSelect
Two options, labelled by vulnerability.side of the Strings Provider, each with its status dot. The value is the boolean a score calculation takes, not a deal Vulnerability: see VulnerabilitySelect for that one.
import { VulnerableSelect } from '@workspace/ui-bridge/fields/vulnerable-select';
<VulnerableSelect variant="toggle" value={vulnerable} onChange={setVulnerable} />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.