# Card

### [Interactive demo](https://vision.crimsonlogic.studio/jds/v1.2/components.html#cards-wrapper)

Cards are a useful UI component for grouping several related pieces of information together for providing a linked entry point to further details on that content. Cards work especially well in contexts where they provide summaries of many different kinds of content, rather than when simply used as a modern-looking replacement for a list of content.

### Examples

<div align="left"><img src="/files/-MZRFbi7ORL08qVMzZQ7" alt=""></div>

<div align="left"><img src="/files/-MZRFkvO6PPrfJTuPo5R" alt=""></div>

```
<div class="row">
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-icon">
              <div class="card-header text-left"><span class="jds-tag has-success ">Tag/Badge</span></div>
              <div class="card-body">
                <div class="card-icon"><span><i class="fal fa-briefcase"></i></span></div>
                <h4 class="card-title">Card with icon</h4>
                <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
              </div>
              <div class="card-footer">
                <button type="button" class="btn btn-primary">Action</button>
              </div>
            </div>
          </div>
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-image"> <img class="card-img-top" src="images/img2.jpg" alt="Card image">
              <div class="card-body">
                <h4 class="card-title">Card with image</h4>
                <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
              </div>
              <div class="card-footer">
                <button type="button" class="btn btn-primary">Action</button>
              </div>
            </div>
          </div>
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-icon">
              <div class="card-header text-left"><span class="jds-tag has-warning ">Tag/Badge</span></div>
              <div class="card-body">
                <div class="card-icon"><span><i class="fal fa-briefcase"></i></span></div>
                <h4 class="card-title">Clickable Card (Stretched Link)</h4>
                <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
              </div>
              <div class="card-footer">
                <button type="button" class="btn btn-primary stretched-link">Action</button>
              </div>
            </div>
          </div>
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-options">
              <div class="dropdown cards-dropdown"><a href="#" class="dots dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="far fa-ellipsis-v"></i><span class="sr-only">Dropdown</span></a>
                <div class="dropdown-menu" style=""> <a class="dropdown-item" href="#">Item 1</a> <a class="dropdown-item" href="#">Item 2</a> <a class="dropdown-item" href="#">Item 3</a> </div>
              </div>
              <div class="card-body">
                <h6>Date</h6>
                <h5 class="card-title">Card with Menu</h5>
                <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
              </div>
              <div class="card-footer"> <span class="jds-tag has-warning mr-auto">Tag/Badge</span>
                <button type="button" class="btn btn-link mr-3"><i class="fal fa-arrow-to-bottom"></i></button>
                <button type="button" class="btn btn-link"><i class="fal fa-calendar-alt"></i></button>
              </div>
            </div>
          </div>
</div>
```

### Cards with image

<div align="left"><img src="/files/-MZRFqttOselv7C4FJwH" alt=""></div>

```
<div class="row">
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-image">
              <div class="card-header"><img class="card-img-top  img-fluid" src="images/img1.jpg" alt="Card image"></div>
              <div class="card-body">
                <h4 class="card-title">Card title</h4>
                <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
              </div>
              <div class="card-footer">
                <button type="button" class="btn btn-primary">Action</button>
              </div>
            </div>
          </div>
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-image">
              <div class="card-header"><img class="card-img-top  img-fluid" src="images/img2.jpg" alt="Card image"></div>
              <div class="card-body">
                <h4 class="card-title">Card title</h4>
                <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
              </div>
              <div class="card-footer">
                <button type="button" class="btn btn-primary">Action</button>
              </div>
            </div>
          </div>
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-image">
              <div class="card-header"><img class="card-img-top img-fluid" src="images/img3.jpg" alt="Card image"></div>
              <div class="card-body">
                <h4 class="card-title">Card title</h4>
                <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
              </div>
              <div class="card-footer">
                <button type="button" class="btn btn-primary">Action</button>
              </div>
            </div>
          </div>
          <div class="col-xl-3 col-lg-6 col-md-12 mb-3">
            <div class="card has-image">
              <div class="card-header"><img class="card-img-top img-fluid" src="images/img4.jpg" alt="Card image"></div>
              <div class="card-body">
                <h4 class="card-title">Card title</h4>
                <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
              </div>
              <div class="card-footer">
                <button type="button" class="btn btn-primary">Action</button>
              </div>
            </div>
          </div>
        </div>
```

### Horizontal Card

<div align="left"><img src="/files/-MZpNBxzPlBChB0AEGe-" alt=""></div>

```
<div class="card">
          <div class="card-horizontal">
            <div class="img-circle-wrapper"> <i class="fal fa-briefcase"></i> </div>
            <div class="card-body"> <span class="jds-tag has-warning">Pending</span>
              <h4 class="card-title">Card title</h4>
              <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
              <button type="button" class="btn btn-primary">Action</button>
            </div>
          </div>
</div>
```


---

# 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://sg-jds.gitbook.io/jds-beta/components/cards.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.
