@jdl2/selectbox
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-alpha.30 • Public • Published

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} />;

Readme

Keywords

none

Package Sidebar

Install

npm i @jdl2/selectbox

Weekly Downloads

0

Version

2.0.0-alpha.30

License

none

Unpacked Size

3.1 kB

Total Files

5

Last publish

Collaborators

  • kzantow