Skip to content

Instantly share code, notes, and snippets.

@AsishP
Created November 12, 2018 10:26
public render(): React.ReactElement<IProps> {
return (
<div>
{
this.props.properties ? (
<TooltipHost content={this.props.tooltipMessage || strings.message}
id='pntp'
calloutProps={{ gapSpace: 0 }}
directionalHint={this.props.tooltipDirectional || DirectionalHint.leftTopEdge}>
{componentHTML}
</TooltipHost>
) : (
<div>
{componentHTML}
</div>
)
}
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment