mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
start over with nextjs
This commit is contained in:
18
components/Select.tsx
Normal file
18
components/Select.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
|
||||
export default (props) => {
|
||||
const { options = [] } = props;
|
||||
|
||||
return (
|
||||
<label>
|
||||
{props.text}
|
||||
<select
|
||||
className={props.name}
|
||||
onChange={props.onchange.bind(null, props.name)}
|
||||
value={props.value}
|
||||
>
|
||||
{options.map((option) => <option value={option.value} key={option.value}>{option.name}</option>)}
|
||||
</select>
|
||||
</label>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user