Skip to content
PluginStats

@aplr/tailwind-components weekly downloads statistics

By aplr · npm · Tailwind plugins

Create tailwind css react components like styled components with classes name on multiple lines

View on npm Fresh · Dec 6, 2026

@aplr/tailwind-components has 36 recorded weekly downloads on npm, an increase of 414% over the past 30 days, ranking #2849 of 3,247 tracked listings.

Weekly downloads
36
Official API · Dec 5, 2026
7-day growth
+260%
+26 weekly downloads
30-day growth
+414%
+29 weekly downloads
90-day growth
+414%
+29 weekly downloads
Rank
#2849
▲ 109 in 7 days

About @aplr/tailwind-components

🌬 Tailwind Components

Tailwind-native react components. Just like styled-components, without the css.

Before 😵‍💫
const Button = ({ primary }) => (
  <div
    className={`flex ${
      primary ? "bg-indigo-600" : "bg-indigo-300"
    } inline-flex items-center border border-transparent text-xs font-medium rounded shadow-sm text-white hover:bg-indigo-700 focus:outline-none`}
  />
)
After 🧖
const StyledButton = tw.div`
  ${({ $primary }) => ($primary ? "bg-indigo-600" : "bg-indigo-300")}

  flex
  items-center
  border
  border-transparent
  text-xs
  font-medium
  rounded
  shadow-sm
  text-white

  hover:bg-indigo-700
  focus:outline-none
`

<StyledButton $primary={false}>

Features

💅 Compatible with Styled Components

⚡️ Use it like any other React Component

🤯 No lines exceeding max line length

🧘 Cleaner code in the render function

Install

You have to install and configure Tailwind CSS to use this extension. Install TailwindCSS

npm install --save @aplr/tailwind-components
VSCode IntelliSense

First, install Tailwind CSS IntelliSense VSCode extension

Then, add the following settings to your user or workspace settings (How to edit VSCode settings?)

{
  "tailwindCSS.includeLanguages": {
    "typescript": "javascript",
    "typescriptreact": "javascript"
  },
  "editor.quickSuggestions": {
    "strings": true
  },
  "tailwindCSS.experimental.classRegex": [
    "tw(?:(?:(?:(?:\\[[.*]+\\])|(?:\\.[^`]+))+)|(?:\\(.+\\)))(?:<.+>)?`([^`]*)`",
    "tss`([^`]*)`"
  ]
}

Usage

Import the tw helper and use it to define React components styled with TailwindCSS.

import tw from "@aplr/tailwind-components"
import { render } from "react-dom"

const Button = tw.button`
  inline-flex
  flex-row
  items-center
  justify-center
  bg-indigo-500
  hover:bg-indigo-700
`

render(<Button>Click me!</Button>)
HTML
<button class="inline-flex flex-row items-center justify-center bg-indigo-500 hover:bg-indigo-700">
  Click me!
</button>
Interpolations

Tailwind Components support interpolations in the template syntax. The most common use are conditional class names, as shown in the following example.

interface ButtonProps {
  $primary: boolean
}

const Button = tw.button<ButtonProps>`
  inline-flex
  ${({ $primary }) => ($primary ? "bg-indigo-600" : "bg-indigo-300")}
`

render(<Button $primary />)
HTML
<button class="inline-flex bg-indigo-600">
  <!-- children -->
</button>

Be sure to set the entire class name

✅ ${({ $primary }) => $primary ? "bg-indigo-600" : "bg-indigo-300"}

❌ bg-indigo-${({ $primary }) => $primary ? "600" : "300"}

Transient props

Tailwind Components support transient props. Prefixing prop names with a dollar sign ($) prevents them being forwarded to the DOM.

Extend a Tailwind Component
const RedButton = tw<ButtonProps>(Button)`
  ${({ $primary }) => ($primary ? "bg-red-600" : "bg-red-300")}
`

render(<RedButton $primary />)
HTML
<button class="inline-flex bg-red-600">
  <!-- children -->
</button>
Extend a Styled Component
const StyledComponent = styled.div`
  filter: blur(1px);
`

const  = tw(StyledComponent)`
  flex
`
HTML:
<div class="flex" style="filter: blur(1px);">
  <!-- children -->
</div>
Polymorphic Components

In order to change the underlying component, you can pass the component to be rendered to the $as prop at runtime. The styles will stay the same, just the element is changed.

const Button = tw.button`inline-flex items-center p-2`

<Button $as="a" href="#">Click me!</Button>
HTML
<a href="#" class="inline-flex items-center p-2">Click me!</a>

Advanced Example

import { ComponentProps, ElementType, PropsWithChildren } from "react"
import tw, { tss } from "@aplr/tailwind-components"

const ButtonSizes = {
  xs: tss`rounded px-3 py-1.5 text-xs`,
  sm: tss`rounded-sm px-4 py-2 text-sm`,
  md: tss`rounded-md px-5 py-2 text-sm`,
  lg: tss`rounded-md px-6 py-2 text-base`,
  xl: tss`rounded-md px-7 py-3 text-lg`,
}

const ButtonStyles = {
  primary: tss`bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500`,
  secondary: tss`bg-blue-100 text-blue-700 hover:bg-blue-200 focus:ring-blue-500`,
  light: tss`bg-white text-gray-700 hover:bg-gray-50 border-gray-300 focus:ring-blue-500`,
  success: tss`bg-green-600 text-white hover:bg-green-700 focus:ring-green-500`,
  danger: tss`bg-red-600 text-white hover:bg-red-700 focus:ring-red-500`,
  dark: tss`bg-zinc-800 text-white hover:bg-zinc-900 focus:ring-zinc-500`,
}

export type ButtonSize = keyof typeof ButtonSizes

export type ButtonStyle = keyof typeof ButtonStyles

type ButtonOwnProps<E extends ElementType> = PropsWithChildren<{
  as?: E
  size?: ButtonSize
  style?: ButtonStyle
  pill?: boolean
}>

type ButtonProps<E extends ElementType> = ButtonOwnProps<E> & ComponentProps<E>

type StyledButtonProps = {
  $size: ButtonSize
  $style: ButtonStyle
  $pill: boolean
}

const StyledButton = tw.button<StyledButtonProps>`
  inline-flex
  items-center
  border
  border-transparent
  font-medium
  shadow-sm
  focus:outline-none
  focus:ring-2
  focus:ring-offset-2
  cursor-pointer

  ${({ $style }) => ButtonStyles[$style]}
  ${({ $size }) => ButtonSizes[$size]}
  ${({ $pill }) => $pill && "rounded-full"}
`…

Description from the npm listing.

  • react
  • css-in-js
  • styled-components
  • css
  • tailwindcss
  • tailwind
  • tailwindcss-plugin
  • tailwind-css
  • tailwindcss-ui

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@aplr/tailwind-components weekly downloads on npm, last 90 days: 36 weekly downloads as of Dec 5, 2026, +414% over 90 days.@aplr/tailwind-componentsWeekly downloads on npm · Last 90 days36downloads / week+414% over 90 days0102030405060Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@aplr/tailwind-components weekly downloads on npm, last 90 days: 36 weekly downloads as of Dec 5, 2026, +414% over 90 days.

7/30/90-day growth

@aplr/tailwind-components weekly downloads growth on npm: +260% over 7 days, +414% over 30 days, +414% over 90 days.@aplr/tailwind-componentsWeekly downloads growth on npm36downloads / week now7-day growth+26 weekly downloads+260%30-day growth+29 weekly downloads+414%90-day growth+29 weekly downloads+414%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@aplr/tailwind-components weekly downloads growth on npm: +260% over 7 days, +414% over 30 days, +414% over 90 days.

Ranking history

@aplr/tailwind-components npm ranking history: currently #2849 (by weekly downloads).@aplr/tailwind-componentsnpm ranking · by weekly downloads · Last 90 days#2849current rank#1800#2000#2200#2400#2600#2800#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@aplr/tailwind-components npm ranking history: currently #2849 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 143, #11 (overall #2,851)
All npm: every listing in weekly downloads order

Listing placement

Tailwind plugins292 listings · 15 pages · page 8, #7 (overall #147)
Tailwind plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for @aplr/tailwind-components
Date (UTC)Weekly downloadsChange vs. previous
36+2
34-1
350
35+21
14-4
180
18+8
10+2
8-9
17+1
16-5
21+3
18-1
19—

Similar npm Tailwind plugins plugins

All 20 @aplr/tailwind-components alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@aplr/tailwind-components. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.