Skip to content

A simple javascript utility for conditionally joining classNames together

License

Notifications You must be signed in to change notification settings

pansyjs/classnames

Repository files navigation

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'

About

A simple javascript utility for conditionally joining classNames together

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published