Created
July 31, 2018 22:47
-
-
Save grantglidewell/bbb2144f9f11204dc7ee4f9ee39b94b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Usage: | |
| <React.Fragment> | |
| <p>Mouseover for more information</p> | |
| <Infotip title="This is the Infotip title" /> | |
| </React.Fragment> | |
| Code: | |
| export function Infotip(props) { | |
| return ( | |
| <div className={styles.tip}> | |
| <i | |
| className={cx(styles.tipIcon, "fa fa-question-circle")} | |
| aria-hidden="true" | |
| /> | |
| <p className={styles.tipText}> | |
| {props.children} | |
| {props.title} | |
| </p> | |
| </div> | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment