RubyGems Navigation menu

clsx 0.1.2

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:
= Copier Copié!

installation:
=

Versions:

  1. 0.1.3 - March 03, 2024 (7 ko)
  2. 0.1.2 - March 03, 2024 (7 ko)
  3. 0.1.0 - November 01, 2022 (8,5 ko)
Voir toutes les versions (4)

Propriétaires:

Pushed by:

Auteurs:

  • Seth Horsley

Total de contrôle SHA 256:

c5d327f5e0ec14a4ddf65e720896e5f1d641fb96d82e2af966cc2677fecc0597

Total de téléchargements 951

Pour cette version 149

License:

MIT

Version de Ruby requise: >= 2.6.0

Liens: