Files
web/components/TempDesignSystem/Text/Footnote/index.tsx
2024-06-13 10:00:16 +02:00

24 lines
478 B
TypeScript

import { Slot } from "@radix-ui/react-slot"
import { footnoteVariants } from "./variants"
import type { FootnoteProps } from "./footnote"
export default function Footnote({
asChild = false,
className = "",
color,
textAlign,
textTransform,
...props
}: FootnoteProps) {
const Comp = asChild ? Slot : "p"
const classNames = footnoteVariants({
className,
color,
textAlign,
textTransform,
})
return <Comp className={classNames} {...props} />
}