@pansy/classnames
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

ClassNames

A simple javascript utility for conditionally joining classNames together

NPM version NPM downloads

特性

  • 🚀 使用TypeScript编写,提供完整的类型定义。

📦 安装

// npm
npm install @pansy/classnames --save

// yarn
yarn add @pansy/classnames

🔨 使用

import classNames from '@pansy/classnames';

classNames('lotus-button', {
  [`is-active`]: true
})

// >> 'lotus-button is-active'

Readme

Keywords

none

Package Sidebar

Install

npm i @pansy/classnames

Weekly Downloads

7

Version

1.0.1

License

MIT

Unpacked Size

15.7 kB

Total Files

12

Last publish

Collaborators

  • wangxingkang