1.0.53 • Published 10 months ago

react-headless-auto-suggest v1.0.53

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

How to use this inside your component.

Simple like this ...

import { useState } from "react";
import SuggestionsInput from "react-headless-auto-suggest";

function App() {
  const [value, setValue] = useState("");
  return (
    <div className="App">
      <div>
        <SuggestionsInput
          onChange={(e) => setValue(e.target.value)}
          value={value}
          suggestions={[
            {
              value: "1",
              content: "one",
            },
            {
              value: "2",
              content: "two",
            },
            {
              value: "3",
              content: "three",
            },
          ]}
        />
      </div>
    </div>
  );
}

export default App;
1.0.53

10 months ago

1.0.52

10 months ago

1.0.51

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago