File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import {MessageBox} from 'react-chat-elements';
313111 . [ Dropdown] ( #dropdown-component )
323212 . [ Avatar] ( #avatar )
333313 . [ 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 |
You can’t perform that action at this time.
0 commit comments