18 lines
343 B
TypeScript
18 lines
343 B
TypeScript
import { captionVariants } from "./variants"
|
|
|
|
import type { CaptionProps } from "./caption"
|
|
|
|
export default function Caption({
|
|
children,
|
|
className = "",
|
|
color,
|
|
textTransform,
|
|
}: CaptionProps) {
|
|
const classNames = captionVariants({
|
|
className,
|
|
color,
|
|
textTransform,
|
|
})
|
|
return <p className={classNames}>{children}</p>
|
|
}
|