Sha256: 1520eada9498f6b7599ce04e78d999cf1d0c437d0cc44e41aaa1ccaccc5e6ecc

Contents?: true

Size: 501 Bytes

Versions: 24

Compression:

Stored size: 501 Bytes

Contents

/* @flow */
import React from 'react'

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

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

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
playbook_ui-4.17.0.pre.alpha1 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.16.0 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.15.0 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.14.0 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.15.1.alpha1 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.13.1 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.13.0 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.12.0 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.11.0 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.11.0.pre.alpha3 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.11.0.pre.alpha.pre.2 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.10.0 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.10.0.pre.alpha1 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.9.0.pre.alpha1 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.9.0 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.8.2 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.8.1 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.7.1 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.7.0 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
playbook_ui-4.6.1 app/pb_kits/playbook/pb_user_badge/_user_badge.jsx