1.0.53 • Published 9 months ago

react-headless-auto-suggest v1.0.53

Weekly downloads
-
License
ISC
Repository
-
Last release
9 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

9 months ago

1.0.52

9 months ago

1.0.51

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago