Sha256: 247f489390d025ac42cea7fe4351587f5852bbeb565366ac1cdfa6cb869f8d13
Contents?: true
Size: 514 Bytes
Versions: 53
Compression:
Stored size: 514 Bytes
Contents
const InputSelectOld = ({ label, name, options, value, onChange }) => { const id = name; const optionElements = options.map((option) => { return <option key={option.value} value={option.value}>{option.label}</option>; }); const handleChange = (e) => { onChange(e.target.value); }; return( <div className="next-input-wrapper next-input-wrapper--halved"> <select id={id} name={name} value={value} onChange={handleChange}> {optionElements} </select> </div> ) };
Version data entries
53 entries across 53 versions & 1 rubygems