caption.tsx

src/components/caption.tsx
import clsx from 'clsx'
interface CaptionProps {
className?: string
children?: React.ReactNode
html?: string
}
export function Caption({ className, children, html }: CaptionProps) {
const classes = clsx(
'text-xs text-caption text-left font-normal italic mt-2',
className
)
if (html) {
return (
<figcaption
className={classes}
dangerouslySetInnerHTML={{ __html: html }}
/>

Showing the first 20 lines.

Get full code

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC