Noisy Pillaging Monster

    bpk-component-spinner

    5.1.8 • Public • Published

    bpk-component-spinner

    Backpack spinner components.

    Installation

    npm install bpk-component-spinner --save-dev

    Usage

    import React from 'react';
    import { BpkSpinner, BpkLargeSpinner, BpkExtraLargeSpinner, SPINNER_TYPES } from 'bpk-component-spinner';
    
    export default () => (
      <div>
        <BpkSpinner type={SPINNER_TYPES.primary} />
        <BpkLargeSpinner type={SPINNER_TYPES.light} />
        <BpkExtraLargeSpinner type={SPINNER_TYPES.dark} />
      </div>
    );

    Props

    Property PropType Required Default Value
    type oneOf('primary', 'light', 'dark') false 'dark'

    BpkSpinner & BpkLargeSpinner only

    Property PropType Required Default Value
    alignToButton bool false false

    Theme Props

    • spinnerPrimaryColor

    Keywords

    none

    Install

    npm i bpk-component-spinner

    DownloadsWeekly Downloads

    860

    Version

    5.1.8

    License

    Apache-2.0

    Unpacked Size

    67.8 kB

    Total Files

    20

    Last publish

    Collaborators

    • frugoman
    • zgeor
    • anambl
    • marianeumayer-skyscanner
    • ojcurt
    • mattface