kit
    Preparing search index...
    • Wraps your booleans only returning true after the delay, and for a minimum time of minDuration. This way you're sure that you don't show unnecessary or very short living spinners.

      Parameters

      • loading: boolean
      • delay: number = 500

        [500]

      • minDuration: number = 200

        [200]

      Returns boolean

      smeijer/spin-delay

      • Smaller footprint and options object as argument