Launched February 6, 2024
TWC - React + Tailwind supercharged

TWC - React + Tailwind supercharged

Create reusable React + Tailwind components in one line

FreeOpen SourceHelpersDesign13,515 impressions#7 of its week

Increase your productivity in React+Tailwind development with TWC. Ultra-light (0.65kb), full editor autocompletion, dynamic styling via props, reusable styles with 'asChild' prop, universal component compatibility, tailwind-merge and cva compatible and React Server components support!

TWC lets you create reusable React + Tailwind components in a single line of code.

for
React developers who use Tailwind CSS and want faster component creation.
license
MIT
gregberge/twc 1.4k 32TypeScriptupdated 10 months ago
works withReactTailwind CSStailwind-mergecvaReact Server Components

Key features

5 features of TWC - React + Tailwind supercharged
  • Tiny bundle size — Only ~0.5 KB gzipped, keeping apps lightweight.
  • Editor autocompletion — Full autocompletion support in all major editors.
  • Prop-based styling — Adjust Tailwind classes dynamically via component props.
  • asChild reuse — Reuse existing class lists with the asChild prop.
  • Universal compatibility — Works with any React component, including server components.

Use cases

  • Define a styled Card component in one line instead of a multi-line wrapper.
  • Create reusable button variants that adapt styles via props.
  • Build component libraries that work with React Server Components without extra boilerplate.

TWC - React + Tailwind supercharged vs alternatives

TWC - React + Tailwind superchargedFloat UI v2FlowbiteTail Lens for Tailwindtoddle
Best forOne-line Tailwind component definitionsReady-made Tailwind UI componentsFull UI component libraryIn-browser Tailwind editingAccelerated web-app scaffolding
PricingFreeFreeFreeOne time feeFree
DevHunt upvotes10443647147
LaunchedFeb 2024Dec 2023Jan 2024Nov 2025Jan 2023

TWC - React + Tailwind supercharged FAQ

Do I need to install additional dependencies?+

Only the TWC package is required; it works with existing Tailwind and React setups.

Is TWC compatible with server-side rendering?+

Yes, it supports React Server Components out of the box.

Can I still use my own class-name utilities like clsx?+

TWC generates the class string, but you can combine it with utilities such as clsx if needed.

How does TWC handle class conflicts?+

It includes first-class support for tailwind-merge, which deduplicates and resolves conflicting Tailwind classes.

Summarized by DevHunt from react-twc.vercel.app · Sep 27, 2026. Details may change; check the official site.