{"size": 437, "ext": "js", "max_stars_repo_path": "docs/node_modules/react-nyx-components/lib/Tooltip.js", "max_stars_repo_name": "dotmonk/dotmonk.github.io", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "docs/node_modules/react-nyx-components/lib/Tooltip.js", "max_issues_repo_name": "dotmonk/dotmonk.github.io", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "docs/node_modules/react-nyx-components/lib/Tooltip.js", "max_forks_repo_name": "dotmonk/dotmonk.github.io", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 437.0, "max_line_length": 437, "alphanum_fraction": 0.7826086957}
import React,{Component}from"/node_modules/react/index.js";const defaultWidth=200;class Tooltip extends Component{render(){const{tooltip,color="standard",width,children}=this.props;return React.createElement("span",{className:`nyx-tooltip-${color}`},children,React.createElement("span",{className:"nyx-tooltip-bubble",style:{width:`${width||defaultWidth}px`,marginLeft:`-${(width||defaultWidth)/2}px`}},tooltip))}}export default Tooltip;