Is it okay to split long lists of class names across multiple lines? Why don't you?

This page summarizes the projects mentioned and recommended in the original post on /r/tailwindcss

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • Tailwind CSS

    A utility-first CSS framework for rapid UI development.

  • But from what I can see in other repositories, this isn’t how it’s usually/supposed to be done. In response to someone asking about automating this, people seem to suggest utilities like clsx/tailwind-merge, but that just seems like overkill. I don’t get why what I’ve shown isn’t sufficient if that’s all you’re using those libraries to do.

  • classnames

    A simple javascript utility for conditionally joining classNames together

  • Use classnames and you can comma delimited your class names where needed.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts