Skip to content

A Babel Macro that applies Tailwind Screen / Variant to multiple utility classes

Notifications You must be signed in to change notification settings

tosuke/tailwind-variant.macro

Repository files navigation

A Babel Macro that apply Tailwind Screen / Variant to multiple utility classes

Babel Macro

Example

import { tw } from "tailwind-variant.macro";

const className = tw.disabled`cursor-not-allowed opacity-50`;

This code is transpiled into:

const className = "disabled:cursor-not-allowed disabled:opacity-50";

About

A Babel Macro that applies Tailwind Screen / Variant to multiple utility classes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published