2.0.0-alpha.30 • Published 6 years ago
@jdl2/selectbox v2.0.0-alpha.30
Selectbox
The Selectbox component renders a simple Selectbox based on user defined options.
const options = [{ value: 'A', label: 'A' }, { value: 'B', label: 'B' }];
const handleChange = (e: HTMLInputElement) => alert('changed to value: ' + e.value);
<Selectbox options={options} value={options[0].value} onChange={handleChange} />;
2.0.0-alpha.30
6 years ago
2.0.0-alpha.29
6 years ago