<Select> lets people choose one or more options from a dropdown. It uses a
<Button> as its trigger and a <Menu> for its options. selection sets behavior:
'single' (default; value is a string, menu closes on pick) or 'multiple'
(checkboxes, value is a string array, menu stays open while toggling, the
field shows an "N selected" count). For single-select, indicator picks the
per-row mark: 'none' (tint only, default), 'check' (trailing checkmark), or
'radio' (leading radio).
Use value with onValueChange to control the selection, or use
defaultValue for uncontrolled use. There is no a-select element. See the
docs for the equivalent markup without React or Preact.
<Select>lets people choose one or more options from a dropdown. It uses a<Button>as its trigger and a<Menu>for its options.selectionsets behavior:'single'(default;valueis a string, menu closes on pick) or'multiple'(checkboxes,valueis a string array, menu stays open while toggling, the field shows an "N selected" count). For single-select,indicatorpicks the per-row mark:'none'(tint only, default),'check'(trailing checkmark), or'radio'(leading radio).Use
valuewithonValueChangeto control the selection, or usedefaultValuefor uncontrolled use. There is noa-selectelement. See the docs for the equivalent markup without React or Preact.Requires
@antadesign/anta/elements(client-side only).