File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -325,19 +325,20 @@ function renderToJS(source: string, config: RenderConfig): string {
325
325
className = expr `
326
326
${ className } + (${ variant . expression }
327
327
? ' ' + styles.${ identifier ( componentName + '__' + variantName ) }
328
- : '')
328
+ : '') + extraClassName
329
329
` ;
330
330
} else {
331
331
className = expr `
332
332
${ className } + (variant.${ identifier ( variantName ) }
333
333
? ' ' + styles.${ identifier ( componentName + '__' + variantName ) }
334
- : '')
334
+ : '') + extraClassName
335
335
` ;
336
336
}
337
337
}
338
338
statements . push ( stmt `
339
339
module.exports.${ identifier ( componentName ) } = function ${ identifier ( componentName ) } (props) {
340
340
var variant = props.variant || {};
341
+ var extraClassName = props.className ? ' ' + props.className : '';
341
342
var className = ${ className } ;
342
343
return React.createElement(
343
344
${ component . base } ,
You can’t perform that action at this time.
0 commit comments