nextui-org / tailwind-variants

🦄 Tailwindcss first-class variant API
https://tailwind-variants.org
MIT License
2.42k stars 68 forks source link

slow down prettier formating in vscode #50

Closed mohammadgarmroodi closed 1 year ago

mohammadgarmroodi commented 1 year ago

i created a button component using tailwind variants like this: const button = tv( { base: "py-2 px-5 ", variants: { variant: { contained: "rounded-[10px] ", outlined: "rounded-[10px]", inlined: "bg-transparent ", }, }, }, { responsiveVariants: ["lg"], } );

type ButtonVariants = VariantProps;

export type IButtonProps = { children: React.ReactNode; } & ButtonVariants;

but when i use this component ,the prettier extenstion formatting on vscode takes to long ... ! and when i remove tailwind variants from this component,prettier formatting working stable and fast !

Screenshot (111)

Expected behavior dont break another tools and extenstion like prettier !

mskelton commented 1 year ago

Closing as not re-producable. This is most likely an issue with Prettier, a prettier plugin, or something else.