chore(ui): explicitely specify the props type of InlineTip (#11575)
This commit is contained in:
5
.changeset/old-lizards-reply.md
Normal file
5
.changeset/old-lizards-reply.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/ui": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
chore(ui): explicitely specify the props type of InlineTip
|
||||||
@@ -17,7 +17,14 @@ interface InlineTipProps extends React.ComponentPropsWithoutRef<"div"> {
|
|||||||
* This component is based on the `div` element and supports all of its props.
|
* This component is based on the `div` element and supports all of its props.
|
||||||
*/
|
*/
|
||||||
export const InlineTip = React.forwardRef<HTMLDivElement, InlineTipProps>(
|
export const InlineTip = React.forwardRef<HTMLDivElement, InlineTipProps>(
|
||||||
({ variant = "info", label, className, children, ...props }, ref) => {
|
(
|
||||||
|
{
|
||||||
|
variant = "info",
|
||||||
|
label,
|
||||||
|
className,
|
||||||
|
children,
|
||||||
|
...props
|
||||||
|
}: InlineTipProps, ref) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref={ref}
|
ref={ref}
|
||||||
|
|||||||
Reference in New Issue
Block a user