Skip to content

Commit

Permalink
GitBook: [codegouvfr#148] No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej authored and gitbook-bot committed Dec 4, 2022
1 parent 227f45f commit 01487e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

* [πŸ”§ Initial setup](README.md)
* [πŸ”€ Integration with routing libs](routing.md)
* [🍧 Class names type safety](fr-utils/cx.md)
* [🍧 Class names type safety](cx.md)
* [🧩 Components](components.md)
* [β˜‘ Icons](icons.md)
* [πŸ’… CSS in JS](css-in-js.md)
Expand Down
2 changes: 1 addition & 1 deletion fr-utils/cx.md β†’ cx.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

It's like [clsx](https://www.npmjs.com/package/clsx) but you can only pass it classes that are from the dsfr.  

<figure><img src="../.gitbook/assets/frcx.gif" alt=""><figcaption></figcaption></figure>
<figure><img src=".gitbook/assets/frcx.gif" alt=""><figcaption></figcaption></figure>

You can't apply your custom classes using fr.cx(), you'll get type error, but you can combinate a regular `cx()` or `clsx()` function and `fr.cx()`. Example: &#x20;

Expand Down

0 comments on commit 01487e6

Please sign in to comment.