@5alid/cls 中文文档教程
Usage
npm i @5alid/cls
or
yarn add @5alid/cls
import cls from '@5alid/cls';
// signature cls(...args);
// args can be: string or [condition: boolean, string, string?]
// basic usage example
cls('px-4 py-1', 'bg-purple'); // result -> 'px-4 py-1 bg-purple'
// with conditions
cls('px-4 py-1', [true, 'bg-blue', 'bg-purple']); // result -> 'px-4 py-1 bg-blue'
Why?
这个小实用程序有助于清理类名样式解决方案,如 tailwindcss、bootstrap 等。
Usage
npm i @5alid/cls
or
yarn add @5alid/cls
import cls from '@5alid/cls';
// signature cls(...args);
// args can be: string or [condition: boolean, string, string?]
// basic usage example
cls('px-4 py-1', 'bg-purple'); // result -> 'px-4 py-1 bg-purple'
// with conditions
cls('px-4 py-1', [true, 'bg-blue', 'bg-purple']); // result -> 'px-4 py-1 bg-blue'
Why?
this small utility helps cleaning up class names styling soluotions like tailwindcss, bootstrap etc.
更多
你可能也喜欢
- @1023-ventures/darri-pp-navigation 中文文档教程
- @11ty/eleventy-plugin-inclusive-language 中文文档教程
- @36node/redux-form-antd 中文文档教程
- @3dsinteractive/pamsdk 中文文档教程
- @4fun/mockit 中文文档教程
- @7rabbit/ink-node 中文文档教程
- @_--/react-calendar 中文文档教程
- @a7md0/angular-skyhook 中文文档教程
- @aaa-backend-stack/devtools 中文文档教程
- @abcnews/mount-utils 中文文档教程