lukeed/clsxPublic

A tiny (239B) utility for constructing `className` strings conditionally.

用法介绍问题

TR

您好,我在查阅您的参考文档的时候发现您用法介绍里面好像有描述错误,也许这是我的问题。

您在上面的介绍里面有个对象的键值对,后面使用布尔值类名可以生效 ![img_v3_02ia_1b9375ba-4cd5-4bb5-9b33-17a4bd198aag](https://github.com/user-attachments/assets/232e5272-91eb-4c32-944b-80b3f94a9c0b)

但是在下面您提示非字符串值都将被舍弃时,我不知道您是否多加了一对 "{}" ![image](https://github.com/user-attachments/assets/a5652b5a-718f-40a9-a69d-7168e5e9a352)

  1. mr0xffreferenced 0b7cf7ac9b48last year on GitHub

  2. mr0xffreferenced this in Fixed reported issue #104 in documentation Non-string note inputs #109last year on GitHub

  3. LU

    Hello,

    Please notice how that second usage section is importing from `clsx/lite`, not `clsx`. The docs are illustrating that this is a key difference between the two modes -- in `clsx/lite`, any non-string inputs are ignored.

  4. lukeedclosedlast year on GitHub