Skip to content

Commit

Permalink
Import React in Caption and Link components
Browse files Browse the repository at this point in the history
  • Loading branch information
Meschacirung committed Apr 30, 2024
1 parent 94f10db commit 3129c79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/typography/Caption.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from "react"
import {
caption,
type CaptionProps as CaptionVariants,
type TextAlignProp,
type TextWeightProp
} from "@tailus/themer"
import React from "react"

type CaptionSize = CaptionVariants["size"]
type TitleSizeProp = CaptionSize | {
type CaptionSizeProp = CaptionSize | {
initial?: CaptionSize,
sm?: CaptionSize,
md?: CaptionSize,
Expand All @@ -21,7 +21,7 @@ export interface CaptionProps extends React.HTMLAttributes<
as?: "p" | "div" | "span" | "em" | "strong",
children: React.ReactNode,
className?: string,
size?: TitleSizeProp;
size?: CaptionSizeProp;
align?: TextAlignProp;
weight?: TextWeightProp;
neutral?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/components/typography/Link.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from "react"
import {
link,
type LinkProps as LinkVariants,
type TextAlignProp,
type TextWeightProp
} from "@tailus/themer"
import React from "react"

type LinkSize = LinkVariants["size"]
type LinkVariant = LinkVariants["variant"]
Expand Down

0 comments on commit 3129c79

Please sign in to comment.