A plug and play React Component Library to integrate with your software and use with our Crystal Developer Profile API.
To see similar components in action, download the Crystal chrome extension
In the project directory, you can run:
Installs the dependencies
Runs the example app in development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
All components accept profile as a prop. This is the profile you will have returned from the developer api.
The components available are:
A list of all the available components, including a sample of a few recommendations components.
<ProfileOverview profile={profile} />
The profile name, photo, and type.
<ProfileHeader profile={profile} />
The profile's disc type and 3 descriptors.
<ProfileBulletPoints profile={profile} />
A styled version of the section header which also receives an icon prop and a text or tsx child.
<SectionHeader icon="disc_wheel" profile={profile}>
DISC Map
</SectionHeader>
A display for the profile content data. Which also receives a title, recommendationList, and optional icon prop.
<Recommendations
profile={profile}
title={'DRAINERS'}
recommendationsList={profile.content.drainer.phrase}
icon="speech_bubble"
/>
A styled list of the dos and dont's
<DosDonts profile={profile} />
A Crystal styled circumplex graph with all of the disc types, with the current profile's disc section highlighted. It includes an optional size property which will reflect the height and width in pixels
<CircumplexGraph profile={profile} size={250} />
The SectionHeader and Recommendations components can receive any of the following strings for their icon:
'speech_bubble', 'close-bubble', 'checkBubble', 'disc_wheel', 'people', 'award', 'working', speech_bubble, mail