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