@@ -13,6 +13,7 @@ Reactjs chat elements
13139 . [ SideBar] ( #sidebar-component )
141410 . [ Navbar] ( #navbar-component )
151511 . [ Dropdown] ( #dropdown-component )
16+ 12 . [ Avatar] ( #avatar )
1617
1718## ChatItem Component
1819
@@ -34,6 +35,7 @@ import { ChatItem } from 'react-chat-elements'
3435| prop | default | type | description |
3536| ---- | ---- | ---- | ---- |
3637| avatar | none | string | ChatItem avatar photo url |
38+ | avatarFlexible | false | boolean | flexible ChatItem avatar photo |
3739| alt | none | string | ChatItem avatar photo alt text |
3840| title | none | string | ChatItem title |
3941| subtitle | none | string | ChatItem subtitle |
@@ -326,9 +328,9 @@ import { Navbar } from 'react-chat-elements'
326328import { Dropdown } from ' react-chat-elements'
327329
328330< Dropdown
329- buttonProps= {{
330- text: ' Dropdown' ,
331- }}
331+ buttonProps= {{
332+ text: ' Dropdown' ,
333+ }}
332334 items= {[
333335 ' merhaba' ,
334336 ' lorem' ,
@@ -348,3 +350,25 @@ import { Dropdown } from 'react-chat-elements'
348350| items | none | array | dropdown items array |
349351| onSelect | none | function | item on select |
350352| buttonProps | none | object | button properties |
353+
354+
355+ ## Avatar Component
356+
357+ ``` javascript
358+ import { Avatar } from ' react-chat-elements'
359+
360+ < Avatar
361+ src= {' https://facebook.github.io/react/img/logo.svg' }
362+ alt= {' logo' }
363+ size= " large"
364+ type= " circle flexible" / >
365+ ```
366+
367+ #### Avatar props
368+
369+ | prop | default | type | description |
370+ | ---- | ---- | ---- | ---- |
371+ | src | none | image | image src |
372+ | alt | none | string | image alt description |
373+ | size | default | string | image size. default (25px), xsmall(30px), small(35px), medium(40px), large(45px), xlarge (55px) |
374+ | type | default | string | types: default, circle, rounded(border radius 5px), flexible |
0 commit comments