RubyGems Navigation menu

clsx 0.1.3

Ruby utility for constructing HTML class strings conditionally with the provided syntax, you can define a module named Clsx that includes a method to handle each case: strings, objects (hashes), arrays, and a combination of these with nested structures. This method will recursively process each argument, filter out falsy values, and concatenate the truthy values into a single string.

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 0.1.3 - March 03, 2024 (7.0 KB)
  2. 0.1.2 - March 03, 2024 (7.0 KB)
  3. 0.1.0 - November 01, 2022 (8.5 KB)
显示所有版本 (共 4 个)

业主:

推送:

作者:

  • Seth Horsley

SHA 256 校验和:

31fdf35e3b40c0df7beff4050130ec2d937f02c4154097c751e4d9523b7cb944

下载总量 883

这个版本 197

许可:

MIT

需要的 Ruby 版本: >= 2.6.0

链接: