PUBLIC RELEASE remove github actions to publish to rubygems, easier to run rake release
add github actions to publish to rubygems
- Changed
clsx
toCLSX
- Initial release
These examples should be working
Strings (variadic)
clsx("foo", true && "bar", "baz")
#=> "foo bar baz"
Objects
clsx({ foo:true, bar:false, baz:is_true? })
#=> "foo baz"
Objects (variadic)
clsx({ foo:true }, { bar:false }, null, { "--foobar":"hello" })
#=> "foo --foobar"
Arrays
clsx(["foo", 0, false, "bar"])
#=> "foo bar"
Arrays (variadic)
clsx(["foo"], ["", 0, false, "bar"], [["baz", [["hello"], "there"]]])
#=> "foo bar baz hello there"
Kitchen sink (with nesting)
clsx("foo", [1 && "bar", { baz:false, bat:null }, ["hello", ["world"]]], "cya")
#=> "foo bar hello world cya"