# ArticleCard

Build awesome article card for your blog articles quickly.

![MonalisaUI](https://raw.githubusercontent.com/tuantvk/monalisa-ui/master/assets/monalisaui-articlecard.png)

View full example: [ArticleCard Example](https://github.com/tuantvk/monalisa-ui/blob/master/example/ArticleCard/index.js)

```javascript
import React from 'react';
import { View } from 'react-native';
import { ArticleCard } from 'monalisa-ui';

const datas = [
  {
    img: 'http://lorempixel.com/640/480/abstract',
    title: 'Et saepe in aut voluptates illum eum laudantium ipsam similique.',
    category: 'Aut voluptatem dicta',
    author: 'Dr. Ida Marvin',
    time: '21 min ago',
  },
  {
    img: 'http://lorempixel.com/640/480/abstract',
    title: 'Et saepe in aut voluptates illum eum laudantium ipsam similique.',
    category: 'Aut voluptatem dicta',
    author: 'Dr. Ida Marvin',
    time: '21 min ago',
  },
  {
    img: 'http://lorempixel.com/640/480/abstract',
    title: 'Et saepe in aut voluptates illum eum laudantium ipsam similique.',
    category: 'Aut voluptatem dicta',
    author: 'Dr. Ida Marvin',
    time: '21 min ago',
  },
];

const Example = () => (
  <View>
    {
      datas.map((data, index) => (
        <ArticleCard
          key={index}
          {...data}
          style={{ marginBottom: 15 }}
        />
      ))
    }
  </View>
);

export default Example;
```

## Configuration

| Property      | Default | Option |                              Description                             |
| ------------- | :-----: | :----: | :------------------------------------------------------------------: |
| img           |    -    |    -   |                       The address of the image                       |
| title         |    -    | string |                       The title of the article                       |
| category      |    -    | string |                      The category of the article                     |
| author        |    -    | string |                       The author of the article                      |
| time          |    -    | string |                        The time of the article                       |
| style         |    -    |    -   |                      Style for the article card                      |
| imageStyle    |    -    |    -   |                          Style for the image                         |
| categoryStyle |    -    |    -   |                        Style for the category                        |
| titleStyle    |    -    |    -   |                          Style for the title                         |
| footerStyle   |    -    |    -   |                         Style for the footer                         |
| activeOpacity |    -    | number | Determines what the opacity of the wrapped view should be when touch |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tuantvk.gitbook.io/monalisaui/articlecard.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
