1.0.1 • Published 1 year ago

ts-input-autocomplete v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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;