Skip to content

Instantly share code, notes, and snippets.

@grantglidewell
Created July 31, 2018 22:47
Show Gist options
  • Select an option

  • Save grantglidewell/bbb2144f9f11204dc7ee4f9ee39b94b0 to your computer and use it in GitHub Desktop.

Select an option

Save grantglidewell/bbb2144f9f11204dc7ee4f9ee39b94b0 to your computer and use it in GitHub Desktop.
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