# Card

Cards contain content and actions about a single subject.

![](/files/-MGxFyu-Tmew2qW7Z4NL)

\
In basic example, card accepts content view as child element.

```jsx
import { Card } from '../components';

<Card>
      <Text>Today we are going to provide you with excellent articles to read in December. Enjoy fresh ideas, tips, and tricks from the JavaScript world.</Text>
</Card>
```

It also may have header and footer by configuring `header` ,`description` ,`footer` properties.

```jsx
import { Card } from '../components';

<Card title={"Title"} description={"Description"} footer={<View style={styles.footerContainer}><Button style={{marginRight: 10, flex: 1}} caption={"Cancel"} bordered primary /><Button primary caption={"Apply"} style={{flex: 1}} /></View>}>
      <Text>Today we are going to provide you with excellent articles to read in December. Enjoy fresh ideas, tips, and tricks from the JavaScript world.</Text>
</Card>
```

## Properties

| Name        | Type                          | Description                                       |
| ----------- | ----------------------------- | ------------------------------------------------- |
| children    | `ReactNode`                   | Component to render within the card.              |
| title       | `(ViewProps) => ReactElement` | Function component to render above the content.   |
| description | `(ViewProps) => ReactElement` | Function component to render description content. |
| footer      | `(ViewProps) => ReactElement` | Function component to render footer content.      |


---

# 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.reactnativestarter.com/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.
