@shakthillc/components
Version:
React generic components for shakthi products
24 lines (19 loc) • 469 B
JavaScript
import React from "react";
import style from "./ToolTip.module.css";
import { PropTypes } from 'prop-types';
var ToolTip = function ToolTip(_ref) {
var text = _ref.text;
return React.createElement(
"div",
{ className: style["tooltip"] },
text,
React.createElement("div", { className: style["tooltip__sub"] })
);
};
export default ToolTip;
ToolTip.defaultProps = {
text: "Sample tool tip"
};
ToolTip.propTypes = {
text: PropTypes.string
};