Sha256: e247f6c6465582470e1f2fe9a49688945e53042440c26f069d2f68d5054d6cc1

Contents?: true

Size: 632 Bytes

Versions: 44

Compression:

Stored size: 632 Bytes

Contents

/* @flow */
import React from 'react'
import classnames from 'classnames'
import { spacing } from '../utilities/spacing.js'

type UserBadgeProps = {
  className?: String,
  id?: String,
  badge?: "million-dollar" | "veteran",
  size?: "sm" | "md" | "lg",
}

const UserBadge = (props: UserBadgeProps) => {
  const { badge = 'million-dollar', size = 'md' } = props
  const image = require(`./badges/_${badge}.svg`)

  return (
    <div className={classnames(`pb_user_badge_kit_${size}`, spacing(props))}>
      <div className="pb_user_badge_wrapper">
        <img src={image} />
      </div>
    </div>
  )
}
export default UserBadge

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
playbook_ui-6.0.1.pre.alpha5 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-6.0.1.pre.alpha4 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-6.0.1.pre.alpha3 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-6.0.1.pre.alpha2 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-5.2.0.pre.alpha15 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-5.2.0.pre.alpha14 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-5.2.0.pre.alpha13 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-6.0.1 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-5.2.0.pre.alpha12 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-6.0.0 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-5.2.0.pre.alpha11 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-5.5.1.pre.alpha4 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-5.5.1.pre.alpha3 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-5.5.1.pre.alpha2 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-5.5.1.pre.alpha1 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-5.2.0.pre.alpha10 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-5.5.1 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-5.5.0 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-5.5.0.pre.alpha1 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-5.2.0.pre.alpha9 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx