Tooltip
A tooltip displays a description of an element on hover or focus.
Installation
Install via VScode or copy and paste the code below into a new file, preferably in a folder at components/base.
BaseLayer
Examples
Default
bl-tooltip
import { Button } from "@/components/base/button";
import { Tooltip, TooltipTrigger } from "@/components/base/tooltip";
import { Save } from "lucide-react";
export const TooltipExample = () => {
return (
<TooltipTrigger>
<Button intent="secondary">
<Save />
</Button>
<Tooltip>Save</Tooltip>
</TooltipTrigger>
);
};