We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reimplement basic classnames API as macro:
classnames
classNames("a", "b", "c" /* etc. */) // => "a b c"
classNames({ a: true, b: props.foo }) // => (true ? "a" : "") + (props.foo ? " b" : "")
classNames(["a", "b"], ["c", "d"]) // => "a b c d"
classNames(props.foo && "foo", props.bar || "bar") // => (props.foo ? "foo" : "") + (props.bar ? "" : " bar")
classNames(["a", props.className]) // => "a" + (" " + props.className)
classNames(props.foo && ["foo", "fighters"], "bar", ["qux", { baz: props.baz }]) // => "bar qux" + (props.foo ? " foo fighters" : "") + (props.baz ? " baz" : "")
The text was updated successfully, but these errors were encountered:
feat: add basic API
3a53d2f
Resolves: #1
0dd8c74
d4c6233
🎉 This issue has been resolved in version 1.0.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
No branches or pull requests
Reimplement basic
classnames
API as macro:The text was updated successfully, but these errors were encountered: