--- import { resolveContent } from '../../lib/content'; interface Props { tag: string; as?: string; class?: string } const { tag, as = 'span', class: cls } = Astro.props; const Tag = as; const c = resolveContent(tag); const classes = [cls, c.classes].filter(Boolean).join(' ') || undefined; --- {c.type === 'html' ? : {c.value}}