boolean-uk / team-dev-frontend-client

1 stars 11 forks source link

Write an initials utilities component #180

Closed georgeroth closed 1 year ago

georgeroth commented 1 year ago

Description

image

Initial code

function InitialsBox({firstWord='', secondWord='', bgColor=null})

Requirements

Example usage

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 className="comment-profile-img">
    <InitialsBox firstWord={'John'} secondWord={'Smith'} bgColor={'#aabbcc'} />
</div>