vanilla-extract
vanilla-extract copied to clipboard
assignInlineVars doesnt accept undefined values
Looks like right now we can work around this by passing an empty string, like so:
style={assignInlineVars({ [pointColor]: point.color ?? '' })}
However, a nice quality of life change would be to just pass a possibly undefined value and let a fallbackVar handle it in my .css.ts