2.0.0-alpha.30 • Published 7 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
7 years ago
2.0.0-alpha.29
7 years ago