krypton-ui
Version:
<h1 align="center"> <p align="center"><a href="https://krypton-ui.com"><img src="https://user-images.githubusercontent.com/7073241/224507377-395bffc0-9ff7-4d74-865b-f734394a7e7e.png" alt="Krypton" width="200"></a></p> </h1>
14 lines (13 loc) • 410 B
TypeScript
import { ComponentPropsWithoutRef } from "react";
export type Placement = "top" | "bottom" | "right" | "left";
type PlacementType = {
placement?: Placement;
};
type TooltipType = PlacementType & {
children: React.ReactNode;
title: string;
arrow?: boolean;
};
export type PlacementStyledProps = PlacementType;
export type TooltipProps = ComponentPropsWithoutRef<"div"> & TooltipType;
export {};