add required props in <Emoji /> example

Without `size` <Emoji /> doesn't render correctly.
release
veob 2017-12-28 12:39:15 +03:00 committed by GitHub
parent bb2aff1c3f
commit 67ac4a26df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -136,9 +136,9 @@ Sheets are served from [unpkg](https://unpkg.com), a global CDN that serves file
```jsx ```jsx
import { Emoji } from 'emoji-mart' import { Emoji } from 'emoji-mart'
<Emoji emoji={{ id: 'santa', skin: 3 }} /> <Emoji emoji={{ id: 'santa', skin: 3 }} size={16} />
<Emoji emoji=':santa::skin-tone-3:' /> <Emoji emoji=':santa::skin-tone-3:' size={16} />
<Emoji emoji='santa' set='emojione' /> <Emoji emoji='santa' set='emojione' size={16} />
``` ```
| Prop | Required | Default | Description | | Prop | Required | Default | Description |