Skip to content

How do I use conditionals in v3? #366

Answered by bstro
turbostackapp asked this question in Q&A
Discussion options

You must be logged in to vote

In my experience, this seems to work:

  classnames(
    display("flex"),
    padding({
      "p-5": someFlag
    })
  )

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by muhammadsammy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants