UNPKG

@jbrowse/plugin-linear-genome-view

Version:

JBrowse 2 linear genome view

16 lines (15 loc) 690 B
import { jsx as _jsx } from "react/jsx-runtime"; import { TextField } from '@mui/material'; export default function AutocompleteTextField({ TextFieldProps, inputBoxVal, params, setInputValue, setCurrentSearch, }) { const { helperText, slotProps = {} } = TextFieldProps; return (_jsx(TextField, { onBlur: () => { setInputValue(inputBoxVal); }, ...params, ...TextFieldProps, size: "small", helperText: helperText, slotProps: { input: { ...params.InputProps, ...slotProps.input, }, }, placeholder: "Search for location", onChange: e => { setCurrentSearch(e.target.value); } })); }