Skip to content

Commit

Permalink
chore(ui): updates to InlineTip's TSDocs (#11580)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser authored Feb 25, 2025
1 parent 731f118 commit 5d404a3
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@ import { clx } from "@/utils/clx"
import * as React from "react"

interface InlineTipProps extends React.ComponentPropsWithoutRef<"div"> {
/**
* The label to display in the tip.
*/
label: string
/**
* The variant of the tip.
* @default "info"
*/
variant?: "info" | "warning" | "error" | "success"
}

Expand All @@ -19,7 +12,13 @@ interface InlineTipProps extends React.ComponentPropsWithoutRef<"div"> {
export const InlineTip = React.forwardRef<HTMLDivElement, InlineTipProps>(
(
{
/**
* The variant of the tip.
*/
variant = "info",
/**
* The label to display in the tip.
*/
label,
className,
children,
Expand Down

0 comments on commit 5d404a3

Please sign in to comment.