Skip to content

Commit b8efe2b

Browse files
SpotiftMessage document added.
1 parent 2c5d0a7 commit b8efe2b

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import {MessageBox} from 'react-chat-elements';
3131
11. [Dropdown](#dropdown-component)
3232
12. [Avatar](#avatar)
3333
13. [LocationMessage](#locationmessage-component)
34+
14. [SpotifyMessage](#spotifymessage-component)
3435

3536
## ChatItem Component
3637

@@ -424,3 +425,25 @@ import { LocationMessage } from 'react-chat-elements'
424425
| data | {} | object | message data |
425426
| target | _blank | string | image a tag target prop |
426427
| onOpen | none | function | image on open |
428+
429+
430+
## SpotifyMessage Component
431+
432+
![spotify](https://user-images.githubusercontent.com/15075759/31466094-ad5852b8-aede-11e7-91bc-8a29e7427552.png)
433+
434+
435+
```javascript
436+
import { SpotifyMessage } from 'react-chat-elements'
437+
438+
<SpotifyMessage
439+
uri={'spotify:user:spotify:playlist:3rgsDhGHZxZ9sB9DQWQfuf'}/>
440+
```
441+
442+
#### SpotifyMessage props
443+
444+
| prop | default | type | description |
445+
| ---- | ---- | ---- | ---- |
446+
| uri | none | uri | spotify uri |
447+
| data | {} | object | message data |
448+
| width | 300 | int | spotify embed width |
449+
| height | 380 | int | spotify embed height |

0 commit comments

Comments
 (0)