This commit is contained in:
7
components/tooltip.js
Normal file
7
components/tooltip.js
Normal file
@@ -0,0 +1,7 @@
|
||||
// components/Tooltip.js
|
||||
import { Tag } from "sigpro";
|
||||
|
||||
export const Tooltip = (props, children) => {
|
||||
children === undefined && (children = props, props = {});
|
||||
return Tag("div", { ...props, class: `tooltip ${props.class ?? ''}`, "data-tip": props.tip }, children);
|
||||
};
|
||||
Reference in New Issue
Block a user