Skip to content

Commit

Permalink
nit fix in README
Browse files Browse the repository at this point in the history
  • Loading branch information
ZxMYS committed Jun 24, 2019
1 parent fc652e4 commit 3599769
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ It outputs following HTML to DOM,

### Props

| Name | Type | Default | Description|
|:---- |:---- |:---- |:----|
| `options` | `Object` | `{}` | `twemoji.parse` options |
| `noWrapper` | `Boolean` | `false` | When it is `true`, `Twemoji` will not render a wrapping element (with `tag`) to contain children. Note that since `twemoji.parse` needs an DOM element reference, any direct pure text child of `Twemoji` is not parsed when `noWrapper` is `true`. E.g. `foo` in `<Twemoji noWrapper={true}>foo<p>bar</p></Twmoji>` is not parsed. |
| `tag` | `string` | `div` | The tag of the wrapping element. This option is ignored when `noWrapper` is `true`. |
| Name | Type | Default | Description|
|:---- |:---- |:---- |:----|
| `options` | `object` | `undefined` | `twemoji.parse` options. |
| `noWrapper` | `boolean` | `false` | When it is `true`, `Twemoji` will not render a wrapping element (with `tag`) to contain children. Note that since `twemoji.parse` needs an DOM element reference, any direct pure text child of `Twemoji` is not parsed when `noWrapper` is `true`. E.g. `foo` in `<Twemoji noWrapper={true}>foo<p>bar</p></Twmoji>` is not parsed. |
| `tag` | `string` | `div` | The tag of the wrapping element. This option is ignored when `noWrapper` is `true`. |

### Run example

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-twemoji",
"version": "0.2.2",
"version": "0.2.3",
"description": "A React wrapper for Twemoji",
"keyword": [
"react",
Expand Down

0 comments on commit 3599769

Please sign in to comment.