1.0.1 • Published 3 years ago

dcoe-search-widget v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Digital COE Search Widget

See this component in action

Installation

npm i dcoe-search-widget

Usage

The SearchBar is a controlled input, meaning that you need to keep the input state. This allows for much flexibility, e.g. you can change and clear the search input just by changing its props.

import SearchComponent from "dcoe-search-widget";
// *snip*

return (
  <SearchComponent
    username = "YOUR_USERNAME"
    password = "YOUR_PASSWORD"
  />
);

SearchBar Properties

NameTypeDefaultDescription
username*stringCognito identity username
password *stringCognito identity password.

* required property

Any other properties supplied will be spread to the underlying Input component.

License

The files included in this repository are licensed under the MIT license.