Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrozendaal committed Sep 1, 2017
1 parent 45c3c66 commit ef9cc90
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Use the component:
class MyComponent extends React.Component {

selectEmoji(emoji) {
this.setState({emoji})
this.setState({emoji}) // {emoji: "🚀", key: "rocket"}
}

render() {
Expand All @@ -40,6 +40,15 @@ class MyComponent extends React.Component {
}
```

### Props
Component props:

| Prop | Default | Type | Description |
|---|---|---|---|
| visibleAmount | 78 | int | Amount of emojis shown before Show-more button is pressed |
| searchPlaceholder | Search | string | Placeholder text for search input |
| onSelect | - | func | Callback function called after selecting an emoji |

[build-badge]: https://img.shields.io/travis/tomrozendaal/react-emoji-selector/master.png?style=flat-square
[build]: https://travis-ci.org/tomrozendaal/react-emoji-selector

Expand Down

0 comments on commit ef9cc90

Please sign in to comment.