You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my VSCode I set up intellisense to recognize "*ClassName" variables, so "buttonClassName" gets the intellisense. Maybe the prettier config could also target variables with "*ClassName" patterns, or whatever the user chooses.
The text was updated successfully, but these errors were encountered:
I am using cn (clsw, twMerge) - this means I have class lists inside plain string variables.
Would be nice we could target the formatting for certain string variables:
const buttonClassName = 'flex h-8 w-8 items-center justify-center rounded-l-lg border-1 border-black';
return( <button className={cn(buttonClassName, 'extraClass')}>Button</button> );
In my VSCode I set up intellisense to recognize "*ClassName" variables, so "buttonClassName" gets the intellisense. Maybe the prettier config could also target variables with "*ClassName" patterns, or whatever the user chooses.
The text was updated successfully, but these errors were encountered: