> For the complete documentation index, see [llms.txt](https://help.brickspacelab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.brickspacelab.com/slab/content/blocks/cards/article-card.md).

# Article card

<figure><img src="https://3723856256-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGnixyIfIYFWroNtVmZo6%2Fuploads%2Fgit-blob-064ec0d172bb0c9c8ed8083c5a9a7749f25203f8%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

## Overview

A flexible article card block for displaying a single article and its associated content blocks. This block is designed to be used within grid or slider layouts and supports a wide range of content types, including rich text, images, videos, icons, and article-specific information. The block offers extensive customization options for spacing, color scheme, border style, layout, and responsive visibility, making it suitable for various blog and content display needs.

## Common use cases

* Use within grid or slider sections to create article galleries or featured blog post displays
* Configure the content blocks to highlight key article information, such as title, description, and featured image
* Adjust spacing and color settings to match your theme's design language and improve visual hierarchy
* Use the visibility settings to tailor the article card display for different devices and layouts
* Leverage scroll animations to add engaging motion effects to article cards

## Compatible blocks

The following blocks can be nested within this block:

* App blocks
* [Rich text](/slab/content/blocks/basics/rich-text.md)
* [Image](/slab/content/blocks/basics/image.md)
* [Icon](/slab/content/blocks/basics/icon.md)
* [Divider](/slab/content/blocks/layout/divider.md)
* [Tags](/slab/content/blocks/navigation/tags.md)
* [Container](/slab/content/blocks/layout/container.md)
* [Button](/slab/content/blocks/basics/button.md)
* [Video](/slab/content/blocks/basics/video.md)
* [Article date](/slab/content/blocks/blog/article-date.md)
* [Slider](/slab/content/blocks/layout/slider.md)
* [Grid](/slab/content/blocks/layout/default-grid.md)
* [Flex](/slab/content/blocks/layout/flex-grid.md)

## Block settings

### General

| Setting                | Description                                              | Options                   |
| ---------------------- | -------------------------------------------------------- | ------------------------- |
| Show advanced settings | Reveals visibility, load animation, and scroll animation | Checkbox (default: false) |

### Content

| Setting | Description                   | Options        |
| ------- | ----------------------------- | -------------- |
| Article | Select the article to display | Article picker |

### Spacing

| Setting                   | Description                                     | Options                                                                      |
| ------------------------- | ----------------------------------------------- | ---------------------------------------------------------------------------- |
| Enable horizontal padding | Adds horizontal padding around the article card | Checkbox (default: false)                                                    |
| Enable vertical padding   | Adds vertical padding around the article card   | Checkbox (default: false)                                                    |
| Gap size                  | Spacing between content blocks within the card  | <p>• None<br>• Default (default)<br>• XS<br>• SM<br>• MD<br>• LG<br>• XL</p> |

### Color

| Setting      | Description                             | Options                                                                                                                                                                                    |
| ------------ | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Color scheme | Controls the background and text colors | <p>• Body (default)<br>• Neutral<br>• Accent 1<br>• Accent 2<br>• Accent 3<br>• Shade 1<br>• Shade 2<br>• Shade 3<br>• Primary<br>• Secondary<br>• Tertiary<br>• Blur<br>• Transparent</p> |
| Color border | Controls the border color               | <p>• Body<br>• Subtle (default)<br>• Strong<br>• Primary<br>• Secondary<br>• Tertiary<br>• None</p>                                                                                        |

### Style

| Setting                 | Description                                              | Options                                                                                                            |
| ----------------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| Border position         | Controls where borders appear                            | <p>• None (default)<br>• Top<br>• Bottom<br>• Left<br>• Right<br>• Top and bottom<br>• Left and right<br>• All</p> |
| Show underline on hover | Displays an underline effect when hovering over the card | Checkbox (default: false)                                                                                          |

### Display

| Setting          | Description                                      | Options                                                                                                                                                                                                                                          |
| ---------------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Visibility       | Controls when the block is visible               | <p>• All (default)<br>• Mobile only<br>• Desktop only</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on</p>                                                                                                               |
| Load animation   | Animation when the block first loads             | <p>• None (default)<br>• Fade<br>• Fade up<br>• Offset fade<br>• Offset fade up</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on and <strong>Scroll animation</strong> is <strong>None</strong></p>                      |
| Scroll animation | Animation effect when the card scrolls into view | <p>• None (default)<br>• Fade<br>• Slide up<br>• Slide down<br>• Slide left<br>• Slide right<br>• Zoom</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on and <strong>Load animation</strong> is <strong>None</strong></p> |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.brickspacelab.com/slab/content/blocks/cards/article-card.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
