@iap Packages
    Preparing search index...

    Function classNames

    • 合并 CSS 类名,自动过滤所有假值(false、null、undefined 等)

      Parameters

      • ...args: (string | boolean | null | undefined)[]

      Returns string

      classNames('btn', isActive && 'btn--active', undefined)  // 'btn btn--active'