UNPKG

@fakel/rest-admin

Version:

An application that makes it easier to work with your API

10 lines (9 loc) 476 B
import React from 'react'; import Select from 'antd/lib/select'; import CoreInput from './Input'; var Option = Select.Option; var SelectInput = function (props) { var label = props.label, name = props.name, placeholder = props.placeholder, options = props.options; return (React.createElement(CoreInput, { label: label, style: { minWidth: 200 }, name: name, placeholder: placeholder || 'Search', options: options, component: Select })); }; export default SelectInput;