ts-input-autocomplete
v1.0.1
Published
A React package for input and search functionality using MUI.
Downloads
3
Maintainers
Readme
My Custom Input Package
This package provides components for input and search functionality using Material-UI in a React application.
Installation
To install the package, use npm or yarn:
npm install ts-input-autocomplete
# or
yarn add ts-input-autocomplete
Usage
import React from 'react';
import { InputComponent } from 'mui-demo';
const inputOptions = ['fever', 'cold', 'flu', 'cough', 'headache'];
const App = () => {
const handleInputChange = (selectedOptions) => {
console.log('Selected options:', selectedOptions);
};
return (
<div>
<h1>Input and Search</h1>
<InputComponent
options={inputOptions}
placeholder="Add symptoms..."
onSelectionChange={handleInputChange}
/>
</div>
);
};
export default App;