tailwind-psuedo
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

tailwind-psuedo

A tiny utility function to join tailwind psuedo classes to together.

Installation

npm

npm install tailwind-psuedo

yarn

yarn add tailwind-psuedo

bun

bun add tailwind-psuedo

How to use?

To use the library, simply import it into your jsx/tsx file and call the twPsuedo() function with an object of pseudo element styles. For example:

example:

import { twPsuedo } from "tailwind-psuedo";

export function Button(){
  return <button className={twPsuedo({
    after: 'bg-red-400 text-white border-xl'
  )}>Click Me</button>
}

Which will be translated into below code while run time.

<button class="after:bg-red-400 after:text-white after:border-xl">Click Me</button>

Contributing

Here's how you can contribute:

  • Open an issue if you believe you've encountered a bug.
  • Make a pull request to add new features/make quality-of-life improvements/fix bugs.

License

Licensed under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i tailwind-psuedo

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

4.01 kB

Total Files

5

Last publish

Collaborators

  • devchaks