audio.tsx

src/components/audio.tsx
import {
type DOMNode,
Element,
} from 'html-react-parser'
import { isTag, getAttrib } from '@/utils/parse-blocks-helpers'
interface AudioProps {
src: string
className?: string
}
export function Audio({ src, className = '' }: AudioProps) {
return (
<figure className={`mb-7 ${className}`}>
<audio controls src={src} className="w-full">
<track kind="captions" />
</audio>
</figure>
)
}

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