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