twin-macro-converter
v1.0.5
Published
``` npm install -g twin-macro-converter
Readme
install twin-macro-converter globally
npm install -g twin-macro-converter
run the commandline via CLI
use twin-css-to-clsx absolute-path-to-file-or-folder
/**
to convert <Tag css={[tw`w-full md:w-[336px] flex md:order-last bg-white rounded-md flex-col p-3`,]}>
into <Tag className={clsx("w-full md:w-[336px] flex md:order-last bg-white rounded-md flex-col p-3")}>
*/
twin-css-to-clsx /Users/Me/projects/react/pages
use twin-tw-to-clsx absolute-path-to-file-or-folder
/**
to <div tw="w-full flex justify-center">
into <div className={clsx("w-full flex justify-center")}>
*/
twin-tw-to-clsx /Users/Me/projects/react/pages
