1.0.1 • Published 5 years ago
dcoe-search-widget v1.0.1
Digital COE Search Widget
See this component in action
Installation
npm i dcoe-search-widgetUsage
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
| Name | Type | Default | Description |
|---|---|---|---|
| username* | string | Cognito identity username | |
| password * | string | Cognito 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.