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

View File

@@ -12,6 +12,7 @@ export default function Caption({
textAlign,
textTransform,
uppercase,
type,
...props
}: CaptionProps) {
const Comp = asChild ? Slot : "p"
@@ -20,6 +21,7 @@ export default function Caption({
className,
textTransform,
uppercase,
type,
})
: captionVariants({
className,
@@ -27,6 +29,7 @@ export default function Caption({
textTransform,
textAlign,
uppercase,
type,
})
return <Comp className={classNames} {...props} />
}