> For the complete documentation index, see [llms.txt](https://docs.heisenware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.heisenware.com/reference/widgets/display/card.md).

# Card

Background surface placed behind other elements, with bindable color, border and elevation

<figure><img src="https://3495989837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE5Ketpww1s7TauSAJrJ8%2Fuploads%2Fgit-blob-0a90081469cfa3632b5dc6bdc39c8097db2e3274%2Fwidget-card.png?alt=media" alt="Three cards: an elevated card for line 1, an outlined card for line 3, and a red dashed card for line 2 in fault" width="1008"><figcaption></figcaption></figure>

A card is a surface behind other widgets that groups them into one panel. It can lift off the page with a shadow or sit flat with an outline, and it takes any background color, border and corner radius. Your logic can change its look while the App runs, for example to turn a line's card red while that line is in fault.

**Good for:** panels and tiles on dashboards, framing groups of inputs, highlighting alarms.

## Properties

The widget's General tab lists these properties under Receives and Emits. Drop an executor's output, input or trigger onto a row to link it. An example also fills an unlinked widget as demo data in the App Builder.

{% tabs %}
{% tab title="Receives" %}
**`variant`** (from an output, `'elevation' | 'outlined'`): The global appearance of the card.

<details>

<summary>Example</summary>

```json
"outlined"
```

</details>

**`backgroundColor`** (from an output, `string`): Any valid CSS color defining the background.

<details>

<summary>Example</summary>

```json
"#f5f7fa"
```

</details>

**`opacity`** (from an output, `number`): Transparency from 0 (transparent) to 1 (opaque)

<details>

<summary>Example</summary>

```json
0.9
```

</details>

**`borderRadius`** (from an output, `string | number`): Any valid CSS identifier to define the border radius.

<details>

<summary>Example</summary>

```json
"8px"
```

</details>

**`border`** (from an output, `object`): An object, defining the border.

<details>

<summary>Example</summary>

```json
{
  "width": 1,
  "color": "#62a378",
  "style": "dashed"
}
```

</details>

**`elevation`** (from an output, `'theme' | 'flat' | 'low' | 'medium' | 'high'`): The visual height above the background.

<details>

<summary>Example</summary>

```json
"medium"
```

</details>

**`style`** (from an output, `Array<object>`): Arbitrary CSS key / value instructions.

<details>

<summary>Example</summary>

```json
[
  {
    "key": "padding",
    "value": "8px"
  }
]
```

</details>

**`props`** (from an output, `object`): Facilitates setting several properties at once.

<details>

<summary>Example</summary>

```json
{
  "backgroundColor": "#ffffff",
  "opacity": 1
}
```

</details>
{% endtab %}
{% endtabs %}

## Settings

Double-click the widget in the Page editor to open its settings, grouped in these tabs.

<details>

<summary>Look &#x26; feel</summary>

* **Surface style**: Elevation raises the card with a shadow (see elevation); outlined draws a border instead (see border). Choices: Elevation, Outlined.
* **Background color**: Fill color of the card as a CSS color; auto or empty keeps the theme's tile color.
* **Opacity**: Transparency of the whole card from 0 (invisible) to 1 (solid). Range 0 to 1.
* **Corner radius**: Rounding of the corners, from square to circle; theme keeps the theme's radius. Choices: Theme, Square, Low, Medium, High, Circle.
* **Custom CSS overrides**: Raw CSS properties applied to the card.
  * **Property**: CSS property in camelCase, e.g. zIndex or cursor.
  * **Value**: Value of that property, e.g. 100 or pointer.
* **Elevation**: Shadow depth under the card, from flat (none) to high; theme keeps the theme's shadow. Choices: Theme, Flat, Low, Medium, High. Only when Surface style is Elevation.
* **Border**: Line drawn around an outlined card. Only when Surface style is Outlined.
  * **Width**: Line width in px. Only when Surface style is Outlined.
  * **Color**: Line color; auto or empty keeps the theme's border color. Only when Surface style is Outlined.
  * **Style**: Solid, dashed or dotted line. Choices: Solid, Dashed, Dotted. Only when Surface style is Outlined.

</details>


---

# 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://docs.heisenware.com/reference/widgets/display/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.
