I have a project using react, typescript, tailwind, cva, clsx, next-intl
Please generate a generic button components with variants (primary, secondary, outline, danger) and provide an example to implement them with a call to action that should be internationalized
Assistant
Here's a genericButton componentin a React project usingTypeScript, Tailwind CSS,cva(Class Variance Authority),clsx, andnext-intl. It includesvariants:primary,secondary,outline, anddanger.
You can add other locale files likemessages/es.jsonsimilarly.
Let me know if you also want to add icon support, loading states, or link-style buttons!
Cite this conversation
“I have a project using react, typescript, tailwind, cva, clsx, next-intl Please generate….” Conversation with ChatGPT (version unspecified), from the ShareChat — Chatbot Conversations in the Wild dataset. The Chat Archive, 2026. https://thechatarchive.com/c/01m84takd7dvmabxf6e7hty80a