@cloudwick/astral-ui 3.0.5 → 3.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
+
import type { Placement } from "@floating-ui/react";
|
|
2
3
|
import { type IconType } from "../adpIcon";
|
|
3
4
|
export declare const colors: readonly ["primary", "secondary", "success", "warning", "error"];
|
|
4
5
|
export declare const variants: readonly ["filled", "outline", "shade", "text"];
|
|
@@ -62,6 +63,19 @@ export interface Props extends Omit<React.ComponentPropsWithoutRef<"button">, "c
|
|
|
62
63
|
* - If a ReactNode is provided, it will be rendered as-is.
|
|
63
64
|
*/
|
|
64
65
|
suffixIcon?: IconType | ReactNode;
|
|
66
|
+
/**
|
|
67
|
+
* Tooltip to be displayed on hover of the button.
|
|
68
|
+
* @description
|
|
69
|
+
* This prop accepts a ReactNode, if this is passed then the button will render
|
|
70
|
+
* tooltip on hover of the button.
|
|
71
|
+
* This tooltip is only on hover and not on click.
|
|
72
|
+
*/
|
|
73
|
+
tooltip?: ReactNode;
|
|
74
|
+
/**
|
|
75
|
+
* Placement of the tooltip
|
|
76
|
+
* @default "bottom-end"
|
|
77
|
+
*/
|
|
78
|
+
tooltipPlacement?: Placement;
|
|
65
79
|
/**
|
|
66
80
|
* Callback function to be called when the button is clicked
|
|
67
81
|
*/
|