> For the complete documentation index, see [llms.txt](https://docs.papillon.bzh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.papillon.bzh/design/components/list.md).

# List

List est un élément conçu pour contenir des [`Item`](/design/components/item.md) en dehors d'une [`TableFlatList`](/design/components/layouts/tableflatlist.md). Il permet de concevoir facilement des interfaces sectionnées.

<figure><picture><source srcset="/files/2P4k6aj5xObDGdfOLBE0" media="(prefers-color-scheme: dark)"><img src="/files/EfXwA35ZPPHf0lt9aK2b" alt=""></picture><figcaption></figcaption></figure>

{% hint style="danger" %}
Si la vue se compose essentiellement de [`List`](/design/components/list.md) ou qu'il faut les sectionner, **privilégiez le** [**Layout**](/design/components/layouts.md) [**`TableFlatList`**](/design/components/layouts/tableflatlist.md)
{% endhint %}

## Usage

Pour utiliser List, il suffit de l'importer et d'y mettre du contenu. List applique automatiquement les séparations et le placement des items à l'intérieur.

{% hint style="warning" %}
List peut contenir autre chose que des Item, **mais cet usage n'est pas recommandé.**
{% endhint %}

{% columns %}
{% column %}

<pre class="language-tsx" data-title="example." data-line-numbers><code class="lang-tsx"><strong>&#x3C;List>
</strong>  {Array.from({ length: 10 }, (_, i) => (
    &#x3C;Item key={i}>
      &#x3C;Typography>
        Je suis l'item {i + 1}
      &#x3C;/Typography>
    &#x3C;/Item>
  ))}
<strong>&#x3C;/List>
</strong></code></pre>

{% endcolumn %}

{% column %}

<figure><picture><source srcset="/files/DaXI7Dc3BHfjy2OdUFyY" media="(prefers-color-scheme: dark)"><img src="/files/CLRfiB9dduovpeybTd8t" alt=""></picture><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

## Propriétés

### `disablePadding`

Supprime le padding appliqué automatiquement aux éléments n'étant pas `<Item />`.

| Type    | Valeur par défaut |
| ------- | ----------------- |
| Booléen | false             |

### `radius`

Bordure arrondie de la liste

| Type   | Valeur par défaut |
| ------ | ----------------- |
| Nombre | 20                |

### `marginBottom`

Marge inférieure appliquée au conteneur de la liste

| Type   | Valeur par défaut |
| ------ | ----------------- |
| Nombre | 12                |

### `animated`

Si l'élément doit s'animer automatiquement ou non ([Layout Transitions](https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/layout-transitions))

| Type    | Valeur par défaut |
| ------- | ----------------- |
| Booléen | True              |

### `entering`

Animation d'entrée de la liste ([Reanimated.View](https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/))

| Type                     |
| ------------------------ |
| EntryOrExitAnimationType |

### `exiting`

Animation de sortie de la liste ([Reanimated.View](https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/))

| Type                     |
| ------------------------ |
| EntryOrExitAnimationType |


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.papillon.bzh/design/components/list.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
