Skip to content

Mapping for boolean component properties #131

Closed Answered by jpudysz
sergeylaptev asked this question in Q&A
Discussion options

You must be logged in to vote

You're the second person who asks about the Boolean variants 🤗.

Right now the easiest way is to cast your Boolean to string before passing to useStyles.

I could theoretically support passing booleans but it would work exactly the same (casting to string).

If this doesn't satisfy you let me know. I can think of other approaches 🙏

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@sergeylaptev
Comment options

@jpudysz
Comment options

Answer selected by sergeylaptev
Comment options

You must be logged in to vote
0 replies
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