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