fix: add labels variants for Footnote and Caption

This commit is contained in:
Christel Westerberg
2024-10-16 11:55:40 +02:00
parent 5269fcb6c4
commit 5870a31275
17 changed files with 74 additions and 57 deletions
@@ -11,20 +11,23 @@ export default function Footnote({
fontOnly = false,
textAlign,
textTransform,
type,
...props
}: FootnoteProps) {
const Comp = asChild ? Slot : "p"
const classNames = fontOnly
? footnoteFontOnlyVariants({
className,
textAlign,
textTransform,
})
className,
textAlign,
textTransform,
type,
})
: footnoteVariants({
className,
color,
textAlign,
textTransform,
})
className,
color,
textAlign,
textTransform,
type,
})
return <Comp className={classNames} {...props} />
}