chore(ui): updates to InlineTip's TSDocs (#11580)
This commit is contained in:
1 parent
731f118987
commit
5d404a3bb8
1 file changed
+6
-7
@@ -2,14 +2,7 @@ import { clx } from "@/utils/clx"
|
|||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
|
|
||||||
interface InlineTipProps extends React.ComponentPropsWithoutRef<"div"> {
|
interface InlineTipProps extends React.ComponentPropsWithoutRef<"div"> {
|
||||||
/**
|
|
||||||
* The label to display in the tip.
|
|
||||||
*/
|
|
||||||
label: string
|
label: string
|
||||||
/**
|
|
||||||
* The variant of the tip.
|
|
||||||
* @default "info"
|
|
||||||
*/
|
|
||||||
variant?: "info" | "warning" | "error" | "success"
|
variant?: "info" | "warning" | "error" | "success"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -19,7 +12,13 @@ interface InlineTipProps extends React.ComponentPropsWithoutRef<"div"> {
|
|||||||
export const InlineTip = React.forwardRef<HTMLDivElement, InlineTipProps>(
|
export const InlineTip = React.forwardRef<HTMLDivElement, InlineTipProps>(
|
||||||
(
|
(
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* The variant of the tip.
|
||||||
|
*/
|
||||||
variant = "info",
|
variant = "info",
|
||||||
|
/**
|
||||||
|
* The label to display in the tip.
|
||||||
|
*/
|
||||||
label,
|
label,
|
||||||
className,
|
className,
|
||||||
children,
|
children,
|
||||||
|
|||||||
Reference in new issue
Block a user