Andeus Designfor Reactv0.1
Components · Forms

Select

Pick one from a list of six or more. For two to four choices use Segmented or Radio.

jsx
import { Select } from '@andeus/ui';

Select

jsx
const [benchmark, setBenchmark] = useState('SPY');

<Select label="Benchmark" options={['SPY', 'QQQ', '60/40', 'Cash']}
  value={benchmark} onChange={(e) => setBenchmark(e.target.value)} />

Props

PropTypeDefault
optionsArray<string | { value, label }>Required
valuestring—Controlled with onChange; or pass defaultValue / defaultChecked.
labelstring—
hintstring—
errorstring—
size's' | 'm' | 'l''m'
disabledbooleanfalse
PreviousInputNextMultiSelect