Skip to content

How do I remove null as a valid variant? #97

Closed Locked Answered by joe-bell
VapidLinus asked this question in Q&A
Discussion options

You must be logged in to vote

Update: currently exploring "unset" keyword in [email protected]


The behaviour of null was defined to reflect the behaviour in Stitches.js — to disable the variant altogether — however I agree with you this is fairly confusing without that prior context

Changing this would be a breaking change so I’ll need to figure out the best way to approach this and batch in with some other ideas I have

I’m thinking instead something like:

button({ variant: “unset” })

(which would be opt-in of course)

Replies: 4 comments 2 replies

This comment has been minimized.

@joe-bell
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by joe-bell
Comment options

You must be logged in to vote
1 reply
@joe-bell
Comment options

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
5 participants