# Card

The `<Card/>` is a universal container for grouping UI elements together. Wrap it around any child elements that you'd like to group visually.&#x20;

## Preview

<div align="left"><figure><img src="/files/EsbjLmJngmb886tRbDLm" alt="" width="375"><figcaption></figcaption></figure></div>

## Code

```javascript
<Card title='Gravity' color='purple'>
 <Children/>
</Card>
```

### Props

| Prop    | Description            | Required | Value                                                     |
| ------- | ---------------------- | -------- | --------------------------------------------------------- |
| title   | title text             | optional | string                                                    |
| loading | toggle loading spinner | optional | boolean                                                   |
| color   | background color       | optional | blue *(default)*, red, green, orange, purple or hex value |


---

# 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://docs.usegravity.app/gravity-native/components/card.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.
