Sha256: e55687768e25fabae73ff74d1cb543443d2b4a2f0f852817bc4bc1ec36249e92

Contents?: true

Size: 713 Bytes

Versions: 7

Compression:

Stored size: 713 Bytes

Contents

/* @flow */

import React from 'react'
import classnames from 'classnames'
import { Body, Icon } from '../'

import { globalProps } from '../utilities/globalProps.js'

type LoadingInlineProps = {
  align?: "left" | "center" | "right",
  className?: String,
  dark?: Boolean,
  data?: String,
  id?: String,
}

const LoadingInline = (props: LoadingInlineProps) => {
  const { align = 'left' } = props
  return (
    <div
        className={classnames(`pb_loading_inline_kit_${align}`, globalProps(props))}
    >
      <Body color="light">
        <Icon
            fixedWidth
            icon="spinner"
            pulse
        />
        {' Loading'}
      </Body>
    </div>
  )
}

export default LoadingInline

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
playbook_ui-6.1.0.pre.alpha5 app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx
playbook_ui-6.1.0.pre.alpha4 app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx
playbook_ui-6.1.0.pre.alpha3 app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx
playbook_ui-6.1.0.pre.alpha2 app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx
playbook_ui-6.1.0.pre.alpha1 app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx
playbook_ui-6.1.0 app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx
playbook_ui-6.0.1.pre.alpha6 app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx