Add clsx utility

This commit is contained in:
Akira Tempaku 2025-05-19 23:33:22 +09:00
commit 22001ef3e2
Signed by: paku
GPG key ID: 5B4E8402BCC50607
4 changed files with 14 additions and 4 deletions

View file

@ -171,6 +171,10 @@ Or loop:
(hsx (li item))))))
```
## Utils
- `(clsx &rest strs)`: A utility function for constructing class strings conditionally. It removes `nil` from the string list, then joins the remaining strings with spaces.
## 📄 License
MIT License