# Comment
### Intro
Used to display the comment list
### Install
```js
import { createApp } from 'vue'
import { Comment } from '@nutui/nutui'
const app = createApp()
app.use(Comment)
```
### Single Line Image
By default, images of reviews for individual items are displayed in a single slide
:::demo
```vue
```
:::
### Multi Line Image
The value of `headerType` allows you to set the image to be displayed in multiple lines
:::demo
```vue
```
:::
### Additional Review
:::demo
```vue
```
:::
## API
### Props
| Attribute | Description | Type | Default |
| --- | --- | --- | --- |
| header-type | Header type | string | `default` |
| images-rows | Comment picture shows type of lines | string | `one` |
| ellipsis | Ellipsis number | string \| number | `2` |
| videos | Videos data | Array | `[]` |
| images | Images data | Array | `[]` |
| info | Comment data | object | `{}` |
| follow | Additional review data | object | `{}` |
| operation | Bottom button | Array | `["replay", "like", "more"]` |
### Events
| Event | Description | Arguments |
| --- | --- | --- |
| click-operate | Emitted when to click bottom button | `type` |
| click | Emitted when to click comment | `type` |
| click-images | Emitted when to click images or videos | `{type,index,value}` |
### Slots
Slots are defined in some areas and can be replaced as required
| Name | Description |
| --- | --- |
| comment-labels | Comment user label |
| comment-shop-reply | At the bottom of the comment is the display of the merchant's response |
### images data
```javascript
const images = [
{
smallImgUrl: '', // Small picture, used for table presentation
bigImgUrl: '', // Big picture, big picture display use
imgUrl: '' // Out figure
}
]
```
### videos data
```javascript
const videos = [
{
mainUrl: '', // Video mask image
videoUrl: '' // Video url
}
]
```
### info data
```javascript
const info = {
content: '', // Comment on the details
nickName: '', // The name of the reviewer
score: 5, // Number of comment stars
avatar: '', // The avatar of the reviewer
time: '', // Comment time
size: '', // Comment good size
replay: 23, // Number of replies to this comment
like: 1 // Number of likes for this comment
}
```
### follow data
用于存放追评相关的信息。
```javascript
const follow = {
days: 0, // Review how many days after purchase
content: '', // Review content
images: [] // Review images
}
```
## Theming
### CSS Variables
The component provides the following CSS variables, which can be used to customize styles. Please refer to [ConfigProvider component](#/en-US/component/configprovider).
| Name | Default Value |
| --- | --- |
| --nut-comment-header-user-name-color | _rgba(51, 51, 51, 1)_ |
| --nut-comment-header-time-color | _rgba(153, 153, 153, 1)_ |
| --nut-comment-bottom-label-color | _rgba(153, 153, 153, 1)_ |
| --nut-comment-shop-color | _var(--nut-primary-color)_ |