Skip to content

Commit

Permalink
fixed props table
Browse files Browse the repository at this point in the history
  • Loading branch information
burhanuday committed Apr 30, 2021
1 parent a058b1d commit ef60e95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,22 @@ const App = () => {
export default App;
```

For a full example, take a look at the `example` folder

### Props

| Props | Required? | Default | Description |
| ------------------ | --------- | ------------ | ------------------------------------------------------------------------------------- |
| onChange | Yes | | `onChange` function to pass to the component. Returns the event from the component |
| value | Yes | | `value` prop to pass to the component |
| Component | | \<input/> | Component to render. You can pass components from your component library as this prop |
| Component | | `<input/>` | Component to render. You can pass components from your component library as this prop |
| lang | | hi | Language you want to transliterate. See the following section for language codes |
| maxOptions | | 5 | Maximum number of suggestions to show in helper |
| offsetY | | 0 | Extra space between the top of the helper and bottom of the caret |
| offsetX | | 0 | Extra space between the caret and left of the helper |
| containerClassName | | empty string | Classname passed to the container of the component |
| containerStyles | | {} | CSS styles object passed to the container |
| activeItemStyles | | {} | CSS styles object passed to the active item <li> tag |
| activeItemStyles | | {} | CSS styles object passed to the active item `<li>` tag |

### Supported Languages

Expand Down

0 comments on commit ef60e95

Please sign in to comment.