Closed georgeroth closed 1 year ago
<div>
Component can be reused everywhere we have initials on the page
function InitialsBox({firstWord='', secondWord='', bgColor=null})
<div style={bgcolor}>
Component needs to be imported first:
import InitialsBox from '../../utils/InitialsBox'
Then the Component needs to be called with the relevant parameters inside a parent div:
div
<div className="comment-profile-img"> <InitialsBox firstWord={'John'} secondWord={'Smith'} bgColor={'#aabbcc'} /> </div>
Description
<div>
that has a nicely styled BG with the initialsComponent can be reused everywhere we have initials on the page
Wireframe
Initial code
Requirements
<div style={bgcolor}>
with the initialsExample usage
Component needs to be imported first:
Then the Component needs to be called with the relevant parameters inside a parent
div
: