# Components

The components are documented individually on a separate website.

{% embed url="<https://components.react-dsfr.codegouv.studio/>" %}

### Customization

What to do if you want to customize the components beyond what the props allow.

#### The `classes` property

Every component of react-dsfr accepts an optional `classes` property that enables you to customize their look at a fine grained level.

<figure><img src="/files/1d70eadOBn4R9ej6FsT9" alt=""><figcaption><p>Available classes on the Alert components</p></figcaption></figure>

<figure><img src="/files/bSCH9l1mLGBxS4ukjkOZ" alt=""><figcaption><p>We add a 5v margin-top to the close button</p></figcaption></figure>

<figure><img src="/files/qlNoEZYtg2XXR3ZDTaKr" alt=""><figcaption><p>Before</p></figcaption></figure>

<figure><img src="/files/iu20eucc47wUNMQ6yrXI" alt=""><figcaption><p>After</p></figcaption></figure>

### Creating a custom component

{% embed url="<https://youtu.be/9uaPv-Q9fe4>" %}
Cusomizing a component - NOTE: theme.decisions... is now fr.colors.decisions...
{% endembed %}


---

# 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://react-dsfr.codegouv.studio/components.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.
